Professional Documents
Culture Documents
output sequence
clc;
close all;
clear all;
y= input('The output sequence y(n) of the system=');
x=input('the input sequence of the system=');
disp(h);
1 1 1
disp(r);
0 0 0 -2 0 0
1
Verification
yv=conv(x,h)+r;
disp('The verified output sequence is');
disp(yv)
1 2 1 -1 0 1
Inference
%% The impulse response h[n] is of finite duration.
%%The verified convolution output sequence is the same as the given y[n].
clc;
close all;
clear all;
N=input('Length of impulse response required=');
2
x[n] coefficient
b=[1];
y[n] coefficients
a=[1,-1,0.9];
Impulse response
h=impz (b,a,N);
Inference
%%The impulse response h[n] is of infinite duration. h[n] is stable