DSP in MATLAB

Discussion in 'Programmer's Corner' started by amindzo, Feb 11, 2010.

  1. amindzo

    Thread Starter New Member

    Feb 11, 2010
    1
    0
    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]=?
     
  2. guitarguy12387

    Active Member

    Apr 10, 2008
    359
    12
    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.
     
Loading...