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 /3812/CH2/EX2.18/2_18.sce | |
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 '3812/CH2/EX2.18/2_18.sce')
-rw-r--r-- | 3812/CH2/EX2.18/2_18.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/3812/CH2/EX2.18/2_18.sce b/3812/CH2/EX2.18/2_18.sce new file mode 100644 index 000000000..ae5fec426 --- /dev/null +++ b/3812/CH2/EX2.18/2_18.sce @@ -0,0 +1,32 @@ +//clear//
+//Example 2.8:Convolution Integral of input x(t)=(e^2t).u(-t) and
+//h(t)=u(t-3)
+clear;
+close;
+clc;
+Max_Limit=0.1;
+x=[0,0,0,ones(1,Max_Limit+0.5)-ones(1,Max_Limit-0.5)];
+w=2;
+t = -9:0;
+h= exp(%i*w*t);
+N2 = 0:length(x)-1;
+N1 = -length(h)+1:0;
+t1 = -6:3;
+y1 =(1/%i*w)*(exp(%i*w*(t+0.5)));
+y2 =(1/%i*w)*(ones(1,Max_Limit));
+y = [y1 y2]
+N = -length(x)+1:length(h)-1;
+figure
+a=gca();
+a.y_location = "origin";
+plot2d(t,h)
+xtitle('Input Response','t','h(t)');
+a.thickness = 2;
+figure
+a=gca();
+a.y_location = "origin";
+a.x_location = "origin";
+a.data_bounds=[-10,0;13,1];
+plot2d(-Max_Limit+4:Max_Limit+3,y)
+xtitle('Output Response','t','y(t)');
+a.thickness = 2;
|