Homework 7 Problem 4

Here you are going to write a function that uses the in-built functions pwelch and cpsd, and you are going to use the results to examine H1 and H2 estimates of H, and the coherence function.  You will use your program to examine effects of window type on the results and the effects of different window sizes.

Homework Set 5 Question 4

This is using the MATLAB program that does the optimal design.

Don’t forget to normalize frequencies by dividing by fs/2.

You may have to “play” a bit to get a good filter design.

By the way when you are testing filters by putting signals through them,  make sure the input signal is long enough so you have some steady state behavior.  Note also that the length of the output will be longer than the input because of the convolution.   Make sure you align the time axis properly.  It would be nice to plot the idea result on the same graph as the output of the filter.

 

Homework Set 4 Problem 5

Homework Set 4 Problem 5

It will be very important to get the complex conjugate symmetry about fsnew/2 correct.   An indication that you didn’t is getting a significant imaginary component when you inverse transform to get the upsampled signal.  If the symmetries in the frequency domain for a real signal in the time domain are correct, the imaginary part should be tiny (due to rounding errors) when compared with the real part, and then you can just set it to the real part.