DSP - Frequency Response of an FIR Filter

AI Thread Summary
The discussion focuses on deriving the frequency response of a linear time-invariant filter defined by the difference equation y[n] = x[n] - x[n-2]. The frequency response is calculated as H(e^-jw) = 1 - e^-j2w, leading to a magnitude expression involving 2j*sin(w). There is confusion regarding how to plot the magnitude due to the presence of the imaginary unit j, prompting a search for resources on plotting complex functions. Suggestions include separating the plots for magnitude and phase to clarify the frequency response. The conversation emphasizes the need for clear visualization techniques in digital signal processing.
Lightning19
Messages
2
Reaction score
0

Homework Statement


A linear time-invariant filter is described by the difference equation

y[n] = x[n] - x[n-2]

a) Obtain an expresson for the frequency response of this system.

b) Sketch the frequency response (magnitude and angle) as a function of frequency.


2. The attempt at a solution

a) {bk} = {1, 0, -1}
H(e^-jw)= 1-e^-j2w

b) I am not sure how to plot the magnitude.

H(e^-jw)= 1-e^-j2w = (e^-jw)(2*j*sin(w))

where (e^-jw) is the angle and (2*j*sin(w)) is the magnitude.

However, there is an imaginary number, j, in the magnitude...what do I do with this?

Thank you.
 
Physics news on Phys.org
OK... so from the notation is seems like cos w is always 0 since the magnitude is

2jsin(w)

So would it just be an empty set of axis?
 
I did a little googling to see if I could find a good reference for plotting complex functions in regards to frequency response. Here's a pdf on FEEDBACK CONTROL that's a bit long but has a good explanation on page 147.
We can replot the data by separating the plots for magnitude and
phase making two plots versus frequency...
"www.ece.clemson.edu/crb/ece409/PlettNotes/PlettDawson.pdf"[/URL]

Regards
 
Last edited by a moderator:
Back
Top