8 Problem A8.4 OGATA 4ed (Bode plot) Let's plot Bode plot of the feedback close-loop system for the values by Scilab. The open-loop transfer function is: Scilab program clf; s=%s/(%pi*2); K=[1 10 20]; for i=1:3, g(i)=K(i)/(s*(s+1)*(s+5)); gc(i)=g(i)/. 1; gcs(i)=syslin('c',gc(i)); end; bode([gcs(1);gcs(2);gcs(3)] ,0.1,100,['K=20';'K=10';'K=1']);
clf; s=%s/(%pi*2); K=[1 10 20]; for i=1:3, g(i)=K(i)/(s*(s+1)*(s+5)); gc(i)=g(i)/. 1; gcs(i)=syslin('c',gc(i)); end; bode([gcs(1);gcs(2);gcs(3)] ,0.1,100,['K=20';'K=10';'K=1']);