Professional Documents
Culture Documents
Senialerssssss
Senialerssssss
Solution:
%Impulse response of y(n)-y(n-1)+0.9y(n-2)=x(n)difference equation b=[1]; a=[1,-1,0.9]; n=[-20:120]; x=[(n-0)==0]; h=filter(b,a,x); stem(n,h); title('Impulse response');xlabel('n');ylabel('h(n)');
ECE 308-1
b.
%unit response of y(n)-y(n-1)+0.9y(n-2)=x(n)difference equation b=[1]; a=[1,-1,0.9]; n=[-20:120];x=[(n-0)>=0]; h=filter(b,a,x); stem(n,h); title('Unit response'); xlabel('n'); ylabel('h(n)');
c.
The impulse response of h(n) is getting zero for n>120. To find system is stable, we need to calculate Therefore
h( n)
ECE 308-2