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/CH11/EX11.22 | |
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/CH11/EX11.22')
-rwxr-xr-x | 29/CH11/EX11.22/exa11_22.jpg | bin | 0 -> 49859 bytes | |||
-rwxr-xr-x | 29/CH11/EX11.22/exa11_22.sce | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/29/CH11/EX11.22/exa11_22.jpg b/29/CH11/EX11.22/exa11_22.jpg Binary files differnew file mode 100755 index 000000000..fcab09709 --- /dev/null +++ b/29/CH11/EX11.22/exa11_22.jpg diff --git a/29/CH11/EX11.22/exa11_22.sce b/29/CH11/EX11.22/exa11_22.sce new file mode 100755 index 000000000..a447467f0 --- /dev/null +++ b/29/CH11/EX11.22/exa11_22.sce @@ -0,0 +1,18 @@ +//caption:gain_margin_and_phase_margin
+//example 11_22
+//page 493
+s=%s;
+g=((2*(s+0.25))/(s^2*(s+1)*(s+0.5)));
+G=syslin('c',g)
+fmin=0.1;
+fmax=100;
+bode(G, fmin, fmax)
+[gm,freqGM]=g_margin(G);
+[pm,freqPM]=p_margin(G);
+show_margins(G);
+disp(gm,"gain_margin=");
+disp((freqGM*2*%pi),"gain_margin_freq=");
+disp(pm,"phase_margin=");
+disp((freqPM*2*%pi),"phase_margin_freq=");
+show_margins(G);
+disp("since gain and phase margin are both negative so system is unstable")
|