diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /29/CH12/EX12.27/exa12_27.sce | |
download | Scilab-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.27/exa12_27.sce')
-rwxr-xr-x | 29/CH12/EX12.27/exa12_27.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/29/CH12/EX12.27/exa12_27.sce b/29/CH12/EX12.27/exa12_27.sce new file mode 100755 index 000000000..ebeda64fd --- /dev/null +++ b/29/CH12/EX12.27/exa12_27.sce @@ -0,0 +1,16 @@ +//caption:gain_and_phase_margin +//example 12_27 +//page543 +clf(); +s=%s; +s1=-s; +disp("for K=0.5") +g=(0.5)/(s*(s+1)^2); +GH=syslin('c',g); +nyquist(GH); +//mtlb_axis([-5 1 -500 500]); +xtitle('Nyquist plot of (2.5*3)/(s*(0.4*s+1)*(0.2*s+1))') +pm=p_margin(GH) +disp(pm,"phase margin=") +gm=g_margin(GH) +disp(gm,"gain margin=")
\ No newline at end of file |