diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3838/CH2/EX2.22.b | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3838/CH2/EX2.22.b')
-rw-r--r-- | 3838/CH2/EX2.22.b/EX2_22_B.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3838/CH2/EX2.22.b/EX2_22_B.sce b/3838/CH2/EX2.22.b/EX2_22_B.sce new file mode 100644 index 000000000..1beda96b5 --- /dev/null +++ b/3838/CH2/EX2.22.b/EX2_22_B.sce @@ -0,0 +1,20 @@ +//EXAMPLE 2.22.B
+clc;
+t=0:1:15;
+t2=0:0.1:15
+a=2;
+x1=exp(-a*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)');
|