[Scilab-users] Problems with Bode and Bode asymptotic
Rafael Guerra
jrafaelbguerra at hotmail.com
Sat Jan 6 03:04:34 CET 2018
Hello,
Noting that bode_asymp() takes (rad/s) inputs and that the bracketed syntax [ , ] in Scilab's help file means optional inputs, please check this:
// START OF CODE
xdel(winsid());
fmin = 1e-2;
fmax = 1e4;
wmin = 2*%pi*fmin;
wmax = 2*%pi*fmax;
f1 = 100;
w1 = 2*%pi*f1;
tau1 = 1/w1;
H1 = 10/(1 + tau1*%s); // order 1 system
S1 = syslin('c',H1);
scf(1);
bode(S1,fmin,fmax);
bode_asymp(S1,wmin,wmax);
xtitle('Order one');
m = .125;//sqrt(2)/4;
wn = w1;
H2 = 10/(1 + 2*m*%s/wn + %s^2/wn^2); // order 2 system
S2 = syslin('c',H2);
scf(2);
bode(S2,fmin,fmax); //
bode_asymp(S2,wmin,wmax);
xtitle('Order two');
scf(3);
bode(S1,fmin,fmax);
// END OF CODE
Regards,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180106/c10cebe3/attachment.htm>
More information about the users
mailing list