summaryrefslogtreecommitdiff
path: root/62/CH2/EX2.29.a/ex_2_29.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /62/CH2/EX2.29.a/ex_2_29.sce
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 '62/CH2/EX2.29.a/ex_2_29.sce')
-rwxr-xr-x62/CH2/EX2.29.a/ex_2_29.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/62/CH2/EX2.29.a/ex_2_29.sce b/62/CH2/EX2.29.a/ex_2_29.sce
new file mode 100755
index 000000000..4b9c95fa6
--- /dev/null
+++ b/62/CH2/EX2.29.a/ex_2_29.sce
@@ -0,0 +1,31 @@
+clear;
+clc;
+n=0:10;
+alpha=.5;
+betaa=.6;
+x=betaa^n;
+h=alpha^n;
+y=convol(x,h);
+figure
+a=gca();
+a.x_location="origin";
+plot2d3(n,h)
+plot(n,h,'r.')
+xtitle('Impulse Response','n','h[n]');
+a.children.children.thickness = 3;
+a.children.children.foreground= 2;
+figure
+a=gca();
+plot2d3(n,x)
+plot(n,x,'r.')
+xtitle('Input Response','n','x[n]');
+a.children.children.thickness = 3;
+a.children.children.foreground= 2;
+figure
+a=gca();
+N=0:20;
+plot2d3(N,y)
+plot(N,y,'r.')
+xtitle('Output Response','n','y[n]');
+a.children.children.thickness = 3;
+a.children.children.foreground= 2; \ No newline at end of file