summaryrefslogtreecommitdiff
path: root/62/CH1/EX1.5.c/ex_1_5c.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /62/CH1/EX1.5.c/ex_1_5c.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/CH1/EX1.5.c/ex_1_5c.sce')
-rwxr-xr-x62/CH1/EX1.5.c/ex_1_5c.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/62/CH1/EX1.5.c/ex_1_5c.sce b/62/CH1/EX1.5.c/ex_1_5c.sce
new file mode 100755
index 000000000..fb4a3e1f5
--- /dev/null
+++ b/62/CH1/EX1.5.c/ex_1_5c.sce
@@ -0,0 +1,32 @@
+//ex_5 even and odd signals of x(t)
+clear;
+clc;
+close;
+t=0:7;
+x=[4 4 4 4 4 4 0 0];
+figure
+a=gca();
+plot2d3(t,x)
+plot(t,x,'r.')
+xtitle('x[n]')
+a.thickness=2;
+t1=-7:0;
+figure
+a=gca();
+t2=-7:7;
+y=[x($:-1:2)./2 x(1) x(2:8)./2 ]
+plot2d3(t2,y)
+plot(t2,y,'r.')
+xtitle('even')
+a.y_location='right';
+a.thickness=2;
+figure
+a=gca();
+z=[-x($:-1:2)./2 0 x(2:8)./2 ]
+plot2d3(t2,z)
+plot(t2,z,'r.')
+xtitle('odd')
+a.y_location='right';
+a.x_location='origin';
+a.thickness=2;
+