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/CH7/EX7.11/EX7_11.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 2294/CH7/EX7.11/EX7_11.sce (limited to '2294/CH7/EX7.11') diff --git a/2294/CH7/EX7.11/EX7_11.sce b/2294/CH7/EX7.11/EX7_11.sce new file mode 100755 index 000000000..cfdf0668b --- /dev/null +++ b/2294/CH7/EX7.11/EX7_11.sce @@ -0,0 +1,27 @@ +//Example 7.11 +//Find the laplace transform . +clc; +t=-10:.01:10; +for i=1:length(t) + if t(i)>=0 then + x(i)=exp(-2.*t(i))*sin(2*t(i)); + else + x(i)=0; + end +end +s=%s; +numfs=2; +denfs=(s+2)^2+4; +fs=syslin('c',numfs/denfs); +fs1=csim('impulse',t,fs); +disp(fs); +f=scf(0); +subplot(2,1,1); +plot2d(t,x,2); +xtitle('Phrasing'); +xgrid; +subplot(2,1,2); +plot2d(t,fs1,1); +xtitle('Solution'); +xgrid; +xs2jpg(0, 'problem109-plot-a.jpg'); -- cgit