From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 62/CH2/EX2.29.a/ex_2_29.sce | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 62/CH2/EX2.29.a/ex_2_29.sce (limited to '62/CH2/EX2.29.a/ex_2_29.sce') 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 -- cgit