Docsity

Math 414 - Spring 2008 Exercise Set 3: Signal Processing with MATLAB - Prof. Harbir Lamba, Assignments of Mathematics

Toggle sidebar
bg1
Math 414 - Spring 2008
Exercise Set 3: Due March 19, 2008
The following MATLAB demos may help you:
1. demo3 (download demo3.m and helo.mat in Ancillaries)
2. fftdemo (in MATLAB, select "MATLAB Help" or "Demos" from the Help menu. Expand "MATLAB",
click on "FFT for Spectral Analysis." First click on "Run this demo," then click on "View code for this
demo."
1. Consider the signal x(t)=cos(8πt)+sin(16πt).Create a sample of size N= 512.
(a) Does the sampling frequency satisfiy the Nyquest criteria? Explain.
(b) Plot the signal on the interval 0≤t≤1
(c) Plot the real part of the DFT of the signal.
(d) Plot the imaginary part of the DFT of the signal.
(e) Plot the magnitude of the DFT of the signal.
2. Plot the signal x(t)=ton the interval 0≤t≤1using a sample size N=512.
(a) Use MATLAB to plot the spectrum of the signal.
(b) Explain any major qualitative differences between this spectrum and the spectra for the signal of
Exercise 1.
3. Use MATLAB to "load" the beat signal called exercise3.mat (in Ancillaries).
(a) Plot the signal - use the MATLAB command "plot(t,x)" - and zoom in sufficiently to observe the
nature of the signal. Try to "eyeball" estimate the two underlying frequencies.
(b) Use MATLAB to plot the spectrum of the signal and ultimately, the two underlying frequencies.
(Choose an appropriate sampling frequency.)

Partial preview of the text

Download Math 414 - Spring 2008 Exercise Set 3: Signal Processing with MATLAB - Prof. Harbir Lamba and more Assignments Mathematics in PDF only on Docsity!

Math 414 - Spring 2008

Exercise Set 3: Due March 19, 2008

The following MATLAB demos may help you:

  1. demo3 (download demo3.m and helo.mat in Ancillaries)
  2. fftdemo (in MATLAB, select "MATLAB Help" or "Demos" from the Help menu. Expand "MATLAB", click on "FFT for Spectral Analysis." First click on "Run this demo," then click on "View code for this demo."
    1. Consider the signal x (t) = cos(8πt) + sin (16πt). Create a sample of size N = 512.

(a) Does the sampling frequency satisfiy the Nyquest criteria? Explain. (b) Plot the signal on the interval 0 ≤ t ≤ 1 (c) Plot the real part of the DFT of the signal. (d) Plot the imaginary part of the DFT of the signal. (e) Plot the magnitude of the DFT of the signal.

  1. Plot the signal x (t) = t on the interval 0 ≤ t ≤ 1 using a sample size N = 512.

(a) Use MATLAB to plot the spectrum of the signal. (b) Explain any major qualitative differences between this spectrum and the spectra for the signal of Exercise 1.

  1. Use MATLAB to "load" the beat signal called exercise3.mat (in Ancillaries).

(a) Plot the signal - use the MATLAB command "plot(t,x)" - and zoom in sufficiently to observe the nature of the signal. Try to "eyeball" estimate the two underlying frequencies. (b) Use MATLAB to plot the spectrum of the signal and ultimately, the two underlying frequencies. (Choose an appropriate sampling frequency.)