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 /1592/CH9/EX9.3/example_9_3.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 '1592/CH9/EX9.3/example_9_3.sce')
-rwxr-xr-x | 1592/CH9/EX9.3/example_9_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1592/CH9/EX9.3/example_9_3.sce b/1592/CH9/EX9.3/example_9_3.sce new file mode 100755 index 000000000..9d6385185 --- /dev/null +++ b/1592/CH9/EX9.3/example_9_3.sce @@ -0,0 +1,23 @@ +//Scilab Code for Example 9.3 of Signals and systems by
+//P.Ramakrishna Rao
+//Convolution of two signals
+clc;
+clear;
+n=1;
+for t=-5:0.1:5
+ x(n)=-2*u(t-0.5)+2*u(t-1.5);
+ y(n)=(t+1)*u(t+1)-(t+1)*u(t-2);
+ n=n+1;
+end
+z=conv(x,y);
+t=-5:0.1:5;
+plot2d2(t,x,5);
+title('x(t)');
+figure(1);
+t=-5:0.1:5;
+plot2d(t,y,2);
+title('y(t)');
+figure(2);
+t=-10:0.1:10;
+plot2d(t,z,6);
+title('Convolution');
|