DSP Exp5
DSP Exp5
Impulse response:
clc;
clear all;
close all;
h = filter(b, a, impulse);
disp('Impulse Response:');
disp(h);
stem(0:N-1, h, 'filled');
xlabel('n (Samples)');
ylabel('h[n]');
grid on;
5.b.STEP RESPONSE:
s = filter(b, a, step_input);
disp('Step Response:');
disp(s);
stem(0:N-1, s, 'filled');
xlabel('n (Samples)');
ylabel('s[n]');
grid on;