Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question # 2 : ( Frequency Filtering ) This question will study a high - pass filter in the frequency domain and apply it to

Question #2: (Frequency Filtering)
This question will study a high-pass filter in the frequency domain and apply it to a sum of sinusoids signal. You will compare this result with the convolution in the time domain. Add all code into skeleton ee13135_lab05_skeleton.m from Canvas. Include all code (and functions) in this one file so that everything is published to a single PDF.
(a) Create a new function H= FreqResponse (b,w) that outputs the following frequency response of an FIR system:
H(ejwidehat(w))=k=0Mbke-jwidehat(w)k.
where the input b is a vector of filter coefficients, input w is a vector of angular frequencies, and output H is the complex-valued frequency response. Include this function at the end of the skeleton file.
(b) Let the filter coefficients be {bk}={1,0,-1,0,1}, generate the frequency response using the function FreqResponse. Plot the magnitude and phase responses. Use Question #1 as a guide.
(c) Use FreqResponse to determine the frequency response at widehat(w)=0,widehat(w)=2, and widehat(w)=910. Use the disp function to display each result.
(d) Given the following input signal:
x[n]=1+2cos((2)n)-cos((910)n+4),
compute the output signal y[n]. Use subplot and stem to plot x[n] and y[n] side-by-side for a range of n containing 1 fundamental period of x[n]. Label the horizontal axis "Samples" and vertical axis "x[n]" or "y[n]".
(e) Using the conv function, compute the convolution between the input signal x[n](for a range of n containing 1 fundamental period) and coefficients {bk}. Call this result z[n]. Use subplot and stem to plot x[n] and z[n] side-by-side for a range of n containing 1 fundamental period of x[n]. Label the horizontal axis "Samples" and vertical axis "x[n]" or "z[n]".
(f) Answer in your comments: How does z[n] compare to y[n]? Explain the cause for any differences.
1
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions