DSP Lab Expt 3 EECE GITAM-19-23
DSP Lab Expt 3 EECE GITAM-19-23
Then
Observation:
clearvars
close all
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,'Color','red');
xlabel('n'); ylabel('y(n)'); title('Output sequence');
22
Observation:
clearvars
close all
b = [0.0181, 0.0543, 0.0543, 0.0181]; % filter
coefficient array b
a = [1.0000, -1.7600, 1.1829, -0.2781]; % filter
coefficient array a
m = 0:length(b)-1; l = 0:length(a)-1; % index arrays m
and l
23
Observation:
Conclusion: