diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /692/CH2/EX2.31 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '692/CH2/EX2.31')
-rwxr-xr-x | 692/CH2/EX2.31/P2_31.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/692/CH2/EX2.31/P2_31.sce b/692/CH2/EX2.31/P2_31.sce new file mode 100755 index 000000000..f596eea0c --- /dev/null +++ b/692/CH2/EX2.31/P2_31.sce @@ -0,0 +1,22 @@ +//EXAMPLE 2.31, Stability for causal system. +//h[i]=impulse response of LTI system. +clear; +clc; +n= -5:0.001:5; +a=0.6; + +for i=1:length(n) + if (n(i)<0) + h(i)=0; + else + h(i)=abs(a^n(i)); + + end +end +S=sum(h); +if(S<%inf) + disp('BIBO stable system'); +else + disp('BIBO unstable system'); + +end |