blob: 078908a6c2b11b9eae4ec186e185a1d049b7ef2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//EXAMPLE 2.33 ,stability of finite impulse response.
//h[i]=impulse response of LTI system.
clear;
clc;
n= -5:1/100:5;
a= input('value of a');
N1=input('lower limit');
N2=input('upper limit');
for i=1:length(a)
if (n(i)<N1 & n(i)>N2)
h(i)=0;
else
h(i)=a^n(i);
S=sum(h);
end
end
if(S<%inf)
disp('BIBO stable system'); //as long as N1,N2!=%inf
else
disp('BIBO unstable system');
end
|