summaryrefslogtreecommitdiff
path: root/2294/CH7/EX7.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2294/CH7/EX7.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2294/CH7/EX7.5')
-rwxr-xr-x2294/CH7/EX7.5/EX7_5.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/2294/CH7/EX7.5/EX7_5.sce b/2294/CH7/EX7.5/EX7_5.sce
new file mode 100755
index 000000000..7754a3da5
--- /dev/null
+++ b/2294/CH7/EX7.5/EX7_5.sce
@@ -0,0 +1,28 @@
+//Example 7.5.2
+//Find the laplace transform of the following signal.
+clc;
+close;
+t=-10:.01:10;
+for i=1:length(t)
+ if t(i)>=0 then
+ x(i)=1;
+ else
+ x(i)=0;
+ end
+end
+s=%s;
+numfs=1;
+denfs=s;
+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, 'EX7_5-plot-a.jpg');