Académique Documents
Professionnel Documents
Culture Documents
Objectives :
To find the impulse response of a given LTI system in difference equation form
Procedure :
1- Find the numerator and de-numerator from the difference equation
i.e for the following function
y[n]= x[n]+2 x[n-1]-2 x[n-2]-x[n-3] +2 x[n-4]
num=1
den=[1 2 -2 -1 2]
2- Enter them in the script and write the vector of the input signal , for our
experiment we will use impulse
Imp=[1 0 0 0 0 0 ]
3- Run the following code
d=1
n=[1 2 -2 -1 2 ]
imp=[1 0 0 0 0 0 0 0]
H=filter(n,d,imp)
n=0:length(H)-1
stem(n,H)
Q/for the following equation find the step response of 3 sample
Sol/
d=1
n=[0.3333 0.3333 ]
imp=[1 1 1]
H=filter(n,d,imp)
n=0:length(H)-1
stem(n,H)