Impulse Response of a First Order and Second Order System with Wave Forms

By
Advertisement
clc;
clear all;
close all;
a=input('enter the numerator coefficient value');
b=input('enter the denominator coefficient value');
N=input('enter the number of samples');
[h,t]=impz(a,b,N);
disp('h=')
disp(h)
stem(t,h);
xlabel('samples');
ylabel('amplitude');
title('impulse response');

1 comment: