Output of FIR Filter for Different Inputs

  • Thread starter Thread starter freezer
  • Start date Start date
  • Tags Tags
    Filter Output
AI Thread Summary
The discussion focuses on calculating the output of a finite impulse response (FIR) filter with coefficients {3, 4, -4, -3} for various inputs. The inputs include the delta function δ[n], a difference of unit step functions (u[n] - u[n-2]), and the unit step function u[n]. Participants suggest building tables to compute the output y[n] for each input, correcting initial misunderstandings about the relationship between input and output values. The unit step function u[n] is clarified, emphasizing its role in determining the output for the second input. Overall, the discussion aims to guide the correct application of FIR filter equations to derive the outputs.
freezer
Messages
75
Reaction score
0

Homework Statement



Consider the FIR filter with {bk} = {3, 4, -4, -3}. These are the filter coefficients for k = 0, 1, 2, and 3, respectively. Sketch the output y[n] where the input is:

x[n] = δ[n]
x[n] = (u[n] - u[n-2])
x[n] - u[n]

Homework Equations



\sum^{M}_{k=0}b_k x[n-k]


The Attempt at a Solution



I am not sure how to process this form.
I would build a table


for the first one x[0] = 3, x[2] = 4, etc..
for second x[0] = 3,..., x[3]=(3-4) = -1

I my notes don't have anything with u[n]
 
Physics news on Phys.org
freezer said:

Homework Statement



Consider the FIR filter with {bk} = {3, 4, -4, -3}. These are the filter coefficients for k = 0, 1, 2, and 3, respectively. Sketch the output y[n] where the input is:

x[n] = δ[n]
x[n] = (u[n] - u[n-2])
x[n] - u[n]

Homework Equations



\sum^{M}_{k=0}b_k x[n-k]

The Attempt at a Solution



I am not sure how to process this form.
I would build a tablefor the first one x[0] = 3, x[2] = 4, etc..
That's the right idea, with the exception of: don't you mean " y[0] = 3, y[1] = 4. etc.."? (As opposed to x[0] = 3, x[2] = 4?)

for second x[0] = 3,..., x[3]=(3-4) = -1

I my notes don't have anything with u[n]

I don't think that's quite right.

u[n] is the unit step function.
<br /> u[n] =<br /> \begin{cases}<br /> 1 &amp; \text{if } n \geq 0 \\<br /> 0 &amp; \text{if } n &lt; 0<br /> \end{cases}<br />

I suggest making a table giving u[n] as a function of n, for n = -1 to around 7 or so. Then do the same thing for -u[n-2]. Then again for u[n] - u[n-2]. And finally make another table for y[n] with that input.
 
Last edited:
Back
Top