1. Load the Matlab sound sample “train.mat” , a train’s whistle signal, into Matlab workspace
with the command
>>load train;
This command creates two local variables y and Fs, where y is returned with the train’s
whistle sampled data and Fs with the sampling frequency of the signal. Record its
waveform, sampling frequency, and the number of samples. Use the same technique as in
PART B by uniformly taking out some samples to obtain the various digital signals with
different sampling frequencies. Then output each signal through the sound card and have a
listen to it. Note similarity or difference of the sound you hear in each case.
Matlab commands