Additionally, do the other parts listed in the deliverables.
Additional Stuff
x2 can be loaded with the command load lab6dat.
Common Problems and Fixes:
inout won't graph anything!. Change line 69 of striplot.m (in the toolbox/dspfirst directory) to read "if (vv(1)=='5' || vv(1)=='6')". Then reload Matlab.
To see how to use freqz, read the beginning of the lab (look for the code using freqz). Note that if you do not save the result of freqz, with a command like H = freqz(bb, 1, ww), the axes will have a log-scaling, which is not what we want for this lab.
Deliverables:
Questions 1-8 (all parts) of 6.3.7:
Plots may be saved and included in your lab report or lab
folder, or generated by an m-file included in your lab folder.
Each part asks for a doing (plots in 1-6, listening in 7 and 8)
and a comment.
Generate the spectrogram of the first 20000 points of
x2, y1, and y2.
Generate the spectrum of x2, y1, and
y2 using abs(fft(x2)). The samples of these
results correspond to values of omega-hat from 0 to 2 pi. Scale
your x-axis on your plots accordingly (but ignore the scaling on
the y-axis).
Convolve h1 and h2 to get a new filter
h3. Look at its frequency response using
freqz. How do you think it will affect the signal?
Use firfilt to apply it and comment on the results (you
may wish to refer to a spectrum, spectrogram, or sound in your
comments).