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 --- 29/CH7/EX7.19.2/exa7_19_2.jpg | Bin 0 -> 49859 bytes 29/CH7/EX7.19.2/exa7_19_2.sce | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 29/CH7/EX7.19.2/exa7_19_2.jpg create mode 100755 29/CH7/EX7.19.2/exa7_19_2.sce (limited to '29/CH7/EX7.19.2') diff --git a/29/CH7/EX7.19.2/exa7_19_2.jpg b/29/CH7/EX7.19.2/exa7_19_2.jpg new file mode 100755 index 000000000..fcab09709 Binary files /dev/null and b/29/CH7/EX7.19.2/exa7_19_2.jpg differ diff --git a/29/CH7/EX7.19.2/exa7_19_2.sce b/29/CH7/EX7.19.2/exa7_19_2.sce new file mode 100755 index 000000000..1a4afa9ce --- /dev/null +++ b/29/CH7/EX7.19.2/exa7_19_2.sce @@ -0,0 +1,18 @@ +//caption:gain_margin_and_phase_margin +//example 7.19.2 +//page 282 +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") -- cgit