You are on page 1of 4

Lab Report 6

Questions
1. Read the uploaded Jack Sparrow’s wave file almostcaught high.wav and examine using DTFT to figure
out the frequency of the tone present in the audio.
Following code is used to read and get the DTFT of the almostcaught.wav

This gives the following plot.


2. Design a notch filter using above-mentioned transfer function and remove
the tone.
If we zoom in on the magnitude we can see that the amplitude is highest and dominant at 0.056 pi.

So in the tone should be of frequency 0.056 pi.


We will substitute the value in the equation given in lab manual.

Then use the function filer to implement the filter as follows.

Task 2
Read the documentation of MATLAB’s command fir1. Design a lowpass FIR filter using the command for
antialiasing. The length of the filter should be 23.
Code for the filter design is given below.

Output lowpass filter denoted by b is given below.


Plot the impulse response as well as the frequency response of the lowpass FIR filter. Do you recognize the impulse
response? Which function does it resemble and why?

This has the shape of a sinc function. I do not know why it resembles a sinc function.

You might also like