dltidemo
folder
dltidemo
and click YES to add the folder to the path
x[n] = 1.5 + 0.9 cos(0.55π n)What's the discrete-time frequency that corresponds to 1.5? It's 0 rad/sample because 1.5 does not oscillate. Mathematically, 1.5 cos(0 n) = 1.5. That is, 1.5 is a cosine with discrete-time frequency of 0 rad/sample, phase of 0 rad, and amplitude of 1.5.
Marker board work for ideal filtering applied to x[n].
The Practical Filters section asks to "Right-click to get values from the frequency response plot". For me, I need to hold down the Control key while Right-Clicking.
x[n] = 1.8 cos(0.1π(n-2)) = 1.8 cos(0.1π n - 0.2π))which is a cosine with discrete-time frequency 0.1π, phase of 0.2π, and amplitude of 1.8.
The output of the LTI system will be a cosine of the same frequency; however, the amplitude will be scaled by the magnitude response of the LTI system evaluated at the discrete-time frequency 0.1π and the phase will be shifted by the phase response of the LTI system evaluated at the discrete-time frequency 0.1π.
The output is in the form
y[n] = A cos(w0 (n - n7))where n7 is an integer. If we distribute the multiplication in the argument of the cosine, we obtain
y[n] = A cos(w0 n - w0 n7)where the phase is -w0 n7, and
Delay(w) = -d/dw ( phase(w) ) = n7We can estimate the slope of the phase to estimate n7. We can also obtain calcualte the exact value of n7 using the Designing Averaging Filters handout.
Please download and extra the contents to create the file “speechbad.mat”. This is a binary file format specific to Matlab that contains a copy of one of more Matlab variables. Load it into Matlab using
load speechbadto define a corrupted speech segment in the Matlab variable xxbad. By loading the file, three variables will be defined:
xxbad fs f_interferenceThe sampling rate, fs, is 8000 Hz. You can use the sound command to play it:
sound(xxbad, fs)