0% found this document useful (0 votes)
2K views

MATLAB Mini Project

This document provides instructions for a MATLAB mini-project on signal processing. Students are asked to analyze a signal stored in a file containing amplitudes over time. The tasks involve plotting the raw signal, identifying its constituent frequencies, designing low-pass, band-pass and band-stop filters to isolate different frequencies, and plotting the filtered signals' magnitude spectra. Students are reminded to submit properly labeled and commented code by the deadline to receive credit.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

MATLAB Mini Project

This document provides instructions for a MATLAB mini-project on signal processing. Students are asked to analyze a signal stored in a file containing amplitudes over time. The tasks involve plotting the raw signal, identifying its constituent frequencies, designing low-pass, band-pass and band-stop filters to isolate different frequencies, and plotting the filtered signals' magnitude spectra. Students are reminded to submit properly labeled and commented code by the deadline to receive credit.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Signals and Systems

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).

Perform the following tasks on the given signal :

Time Domain and Frequency Domain Representation of Raw Signal


1. Load this file in MATLAB using the ‘load’ command and plot the given signal for three
periods.

f1 < f2 < f3. Identify to the nearest


2. This signal is a constituent of three different frequencies
integer the value of these frequencies by plotting the magnitude spectrum of the signal, xf.
(Hint: Use Frequency domain analysis, you can use the MATLAB function fft() or make
your own function.)

Filtering

3. Design the following filters and display the magnitude spectra of the resultant signals (as a
function of frequency in Hz):

a. A low-pass filter that passes only the frequency f1.

i. Plot the frequency response (magnitude) of the filtered signal, xf1 to show
that it indeed contains only the components of frequency f1.

b. A band-pass filter that allows passing the frequency f3.

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 :

fft() ; fftshift (); fir1(); filter().

You might also like