summaryrefslogtreecommitdiff
path: root/716/CH2/EX2.3.a/Solved_Ex2_3a.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /716/CH2/EX2.3.a/Solved_Ex2_3a.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 '716/CH2/EX2.3.a/Solved_Ex2_3a.sce')
-rwxr-xr-x716/CH2/EX2.3.a/Solved_Ex2_3a.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/716/CH2/EX2.3.a/Solved_Ex2_3a.sce b/716/CH2/EX2.3.a/Solved_Ex2_3a.sce
new file mode 100755
index 000000000..ef07f617c
--- /dev/null
+++ b/716/CH2/EX2.3.a/Solved_Ex2_3a.sce
@@ -0,0 +1,25 @@
+//Determine Even and Odd part of a CT signal x(t)=exp(t)
+clc;
+clear;
+clf;
+t=-10:0.01:10;
+x1=exp(t);
+x2=exp(-1*t);
+Xe=(x1+x2)/2;
+Xo=(x1-x2)/2;
+
+subplot(221)
+plot(t,x1);
+xtitle('the signal x(t)=exp(t)','time t','signal x(t)');
+
+subplot(222)
+plot(t,x2);
+xtitle('the signal x(-t)=exp(-t)','time t','signal x(t)');
+
+subplot(223)
+plot(t,Xe);
+xtitle('even part of the signal,Xe(t)=(x(t)+x(-t))/2','time t','signal x(t)');
+
+subplot(224)
+plot(t,Xo);
+xtitle('odd part of the signal,Xo(t)=(x(t)-x(-t))/2','time t','signal x(t)'); \ No newline at end of file