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 --- 40/CH2/EX2.3a/Exa_2_3a.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 40/CH2/EX2.3a/Exa_2_3a.sce (limited to '40/CH2/EX2.3a/Exa_2_3a.sce') diff --git a/40/CH2/EX2.3a/Exa_2_3a.sce b/40/CH2/EX2.3a/Exa_2_3a.sce new file mode 100755 index 000000000..1cf640075 --- /dev/null +++ b/40/CH2/EX2.3a/Exa_2_3a.sce @@ -0,0 +1,21 @@ +//example 2.3a pg.no.14 +clear;clc;close; +n=-2:2; +x1=[4 -2 4 -6 0]; +x2=0.5*x1//x[n] +x3=0.5*[x1(length(x1):-1:1)];//x[-n] +xe=(x2+x3);//even part +xo=(x2-x3);//odd part +a=gca(); +a.thickness=2; +a.x_location="middle"; +a.y_location="middle"; +plot2d3('gnn',n,xe,rect=[-4 -6 4 6]) +xtitle('graphical representation of even part of x[n]','n','x[n]') +xset('window',1) +b=gca(); +b.thickness=2; +b.y_location="middle"; +b.x_location="middle"; +plot2d3('gnn',n,xo,rect=[-2 -4 2 4]) +xtitle('graphical representation of odd part of x[n]','n','x[n]') -- cgit