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 --- 773/CH13/EX13.01/13_01.sci | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 773/CH13/EX13.01/13_01.sci (limited to '773/CH13/EX13.01') diff --git a/773/CH13/EX13.01/13_01.sci b/773/CH13/EX13.01/13_01.sci new file mode 100755 index 000000000..6a775fc3b --- /dev/null +++ b/773/CH13/EX13.01/13_01.sci @@ -0,0 +1,10 @@ +//polynomial// +s=poly(0,'s'); //Defines s as polynomial variable +F=syslin('c',[20/(s+2)]) //Creates transfer function in forward path +B=syslin('c',(1+0*s)/(1+0*s)) //Creates transfer function in backward path +OL=F*B //Calculates open-loop transfer function +fmin=0.1; //Min freq in Hz +fmax=100; //Max freq in Hz +scf(1);clf; +bode(OL,fmin,fmax); //Plots frequency response of open-loop system in Bode diagram +show_margins(OL) //display gain and phase margin and associated crossover frequencies -- cgit