summaryrefslogtreecommitdiff
path: root/29/CH12/EX12.11/exa12_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /29/CH12/EX12.11/exa12_11.sce
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 '29/CH12/EX12.11/exa12_11.sce')
-rwxr-xr-x29/CH12/EX12.11/exa12_11.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/29/CH12/EX12.11/exa12_11.sce b/29/CH12/EX12.11/exa12_11.sce
new file mode 100755
index 000000000..80e747fc4
--- /dev/null
+++ b/29/CH12/EX12.11/exa12_11.sce
@@ -0,0 +1,19 @@
+//Caption:determine_unit_step_and_unit_impulse_response
+//example 12.11
+//page 524
+s=%s;
+syms t;
+G=sym('8/(s+1)');
+H=sym('(1/2*s)');
+CL=G/(1+G*H);
+disp(CL,"C(s)/R(s)=");
+//for unit step response R(s)=1/s;
+d=CL*(1/s);
+disp(d,"C(s)=");
+c=ilaplace(d,s,t);
+disp(c,"unit step response,c(t)=");
+//for unit impulse response R(s)=1;
+e=CL*(1);
+disp(e,"C(s)=");
+ct=ilaplace(e,s,t);
+disp(ct,"unit impulse response,c(t)=");