summaryrefslogtreecommitdiff
path: root/62/CH1/EX1.6/ex_1_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '62/CH1/EX1.6/ex_1_6.sce')
-rwxr-xr-x62/CH1/EX1.6/ex_1_6.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/62/CH1/EX1.6/ex_1_6.sce b/62/CH1/EX1.6/ex_1_6.sce
new file mode 100755
index 000000000..9c8a218da
--- /dev/null
+++ b/62/CH1/EX1.6/ex_1_6.sce
@@ -0,0 +1,19 @@
+//ex_6 even and odd signal of e^jt
+clear;
+clc;
+close;
+t = 0:1/100:5;
+x=exp(%i.*t);
+y=exp(-%i.*t);
+even=x./2+y./2;
+odd=x./2-y./2;
+figure
+a=gca();
+plot2d(t,even)
+a.x_location='origin'
+xtitle('even','t')
+figure
+a=gca();
+plot2d(t,odd./%i)
+a.x_location='origin'
+xtitle('odd','t') \ No newline at end of file