From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3838/CH2/EX2.22.A/EX2_22_A.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 3838/CH2/EX2.22.A/EX2_22_A.sce (limited to '3838/CH2/EX2.22.A/EX2_22_A.sce') diff --git a/3838/CH2/EX2.22.A/EX2_22_A.sce b/3838/CH2/EX2.22.A/EX2_22_A.sce new file mode 100644 index 000000000..f36ff8523 --- /dev/null +++ b/3838/CH2/EX2.22.A/EX2_22_A.sce @@ -0,0 +1,19 @@ +//EXAMPLE 2.22.A +clc; +t=0:1:15; +t2=0:0.1:15 +x1=exp((-3)*t2).*(t2>=0); +x2=t.*(t>=0); +subplot(3,1,1);plot(t2,x1); +xlabel('t');ylabel('x1(t)'); +title('signal x1(t)'); +subplot(3,1,2);plot(t,x2); +xlabel('t');ylabel('x2(t)'); +title('signal x2(t)'); +T1=length(x1); +T2=length(x2); +x3=convol(x1,x2); +t1=0:1:T1+T2-2; +subplot(3,1,3);plot(t1,x3); +xlabel('t');ylabel('x3(t)'); +title('signal x3(t) =x1(t)*x2(t)'); -- cgit