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/CH12/EX12.27/exa12_27.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 29/CH12/EX12.27/exa12_27.sce (limited to '29/CH12/EX12.27/exa12_27.sce') 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 -- cgit