MATLAB Mini Project
MATLAB Mini Project
MATLAB Mini-project
Last date for submission: 25th May, 2011
Please ensure timely submission of assignments. Delayed submissions will not get any credit.
Submit your commented codes by saving your script file as lastname_registration_no.m (e.g.
khan_24.m). Ensure that you do not copy other’s codes, as you would be examined for your
understanding. Label the figures properly.
You are given a signal stored in the file “signal.mat” containing the signal amplitudes (signal) and
the signal sampling times (t). The signal was obtained by the combination of three pure tones
(three sinusoids).
Filtering
3. Design the following filters and display the magnitude spectra of the resultant signals (as a
function of frequency in Hz):
i. Plot the frequency response (magnitude) of the filtered signal, xf1 to show
that it indeed contains only the components of frequency f1.
i. Plot the frequency response (magnitude) of the filtered signal, xf3, to show
that it indeed contains only the components of frequency f3.
c. Now design a band-stop filter that would stop the central frequency f2 from passing
to the output but passes the other frequencies using the results of part (a) and (b).
Display the resultant magnitude spectrum of the band-stop filtered signal.
Note : Use of following MATLAB functions may be useful, see the example.m file :