summaryrefslogtreecommitdiff
path: root/692/CH2/EX2.33
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /692/CH2/EX2.33
downloadScilab-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.33')
-rwxr-xr-x692/CH2/EX2.33/P2_33.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/692/CH2/EX2.33/P2_33.sce b/692/CH2/EX2.33/P2_33.sce
new file mode 100755
index 000000000..078908a6c
--- /dev/null
+++ b/692/CH2/EX2.33/P2_33.sce
@@ -0,0 +1,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