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 --- 1592/CH9/EX9.3/Fig9_3_3.jpg | Bin 0 -> 5573 bytes 1592/CH9/EX9.3/example_9_3.sce | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 1592/CH9/EX9.3/Fig9_3_3.jpg create mode 100755 1592/CH9/EX9.3/example_9_3.sce (limited to '1592/CH9/EX9.3') diff --git a/1592/CH9/EX9.3/Fig9_3_3.jpg b/1592/CH9/EX9.3/Fig9_3_3.jpg new file mode 100755 index 000000000..dda380259 Binary files /dev/null and b/1592/CH9/EX9.3/Fig9_3_3.jpg differ 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'); -- cgit