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 --- 2294/CH4/EX4.10/EX4_10.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 2294/CH4/EX4.10/EX4_10.sce (limited to '2294/CH4/EX4.10/EX4_10.sce') diff --git a/2294/CH4/EX4.10/EX4_10.sce b/2294/CH4/EX4.10/EX4_10.sce new file mode 100755 index 000000000..21eaf7ff5 --- /dev/null +++ b/2294/CH4/EX4.10/EX4_10.sce @@ -0,0 +1,29 @@ +//Find the covolution Of the following signals. +//Example 4.10 +clc; +clear; +close; +t=-20:.01:20; +for i=1:length(t) + if t(i)<0 | t(i)>2 then + x(i)=0; + else + x(i)=1; + end + if t(i)>=10 then + h(i)=1; +else + h(i)=0; +end +end +y=convol(h,x); +subplot(3,1,1); +plot(t,h,'red'); +xtitle('input response 2','t','h[t]'); +subplot(3,1,2); +plot(t,x,'blue'); +xtitle('input response 2','t','x[t]'); +subplot(3,1,3); +t1=-40:.01:40; +plot(t1,y,'green'); +xtitle('output response','t','y[t1]'); -- cgit