No BSD License  

Highlights from
Digital Signal Processing Using MATLAB

Digital Signal Processing Using MATLAB

by

 

21 Aug 2002 (Updated )

Companion Software

ex031500.m
subplot(1,1,1)

b = 1; a = [1,-0.8];

n=[0:100];x = cos(0.05*pi*n);

y = filter(b,a,x);

subplot(2,1,1); stem(n,x);

xlabel('n'); ylabel('x(n)'); title('Input sequence')

subplot(2,1,2); stem(n,y);

xlabel('n'); ylabel('y(n)'); title('Output sequence')

Contact us