diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /716/CH2/EX2.3.c/Solved_Ex2_3c.sce | |
download | Scilab-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.c/Solved_Ex2_3c.sce')
-rwxr-xr-x | 716/CH2/EX2.3.c/Solved_Ex2_3c.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/716/CH2/EX2.3.c/Solved_Ex2_3c.sce b/716/CH2/EX2.3.c/Solved_Ex2_3c.sce new file mode 100755 index 000000000..0ddc10e23 --- /dev/null +++ b/716/CH2/EX2.3.c/Solved_Ex2_3c.sce @@ -0,0 +1,27 @@ +//Determine Even and Odd part of a CT signal x(t)=sin(2t)+cos(t)+sin(t)*cos(2t)
+clc;
+clear;
+clf;
+t=-20:0.01:20;
+x1=sin(2*t)+cos(t)+sin(t).*cos(2*t);
+x2=sin(-2*t)+cos(-1*t)+sin(-1*t).*cos(-2*t);
+Xe=(x1+x2)/2;
+Xo=(x1-x2)/2;
+disp(Xe,'even part of Given function=>');
+disp(Xo,'odd part of Given function=>');
+
+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 |