DSP in MATLAB

Thread Starter

amindzo

Joined Feb 11, 2010
1
Hi, i'm new in DSP and i have solve some problems, here is the problem:

Given a causal FIR filter described by the following equation:
y[n]= x[n]-2x[n-1]+3x[n-2]
a) Find the filter impulse response Answer:h[n]=?
b) Using MATLAB find the output when the input to the filter is x[n]=[1 -3 4 0 5 6 1 -2 3]
Answer: y[n]=?
 
Hey,

You pretty much already have the impulse response.... to help think about it, take the z-transform, find the transfer function and then take the inverse z-transform. See any relation to the original difference equation?

For part b, type 'help filter' into matlab. Should be pretty self explanatory.
 
Top