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 --- 716/CH2/EX2.3.a/Solved_Ex2_3a.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 716/CH2/EX2.3.a/Solved_Ex2_3a.sce (limited to '716/CH2/EX2.3.a/Solved_Ex2_3a.sce') 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 -- cgit