Illustration of Sound files:
For illustration, the following script generates a subplot which shows the signals from chirp and from train, which is as shown in figure:
The first argument to the sound function can be an n × 2 matrix for stereo sound. The second argument can also be omitted whenever calling the sound function; in that case the default sample frequency of 8192 Hz is used. This is the same frequency stored in the built-in sound MAT-files.
>> load train