blob: be5e6204fb057d2f2e0a070bb8e867fb70b4e3ce (
plain)
1
2
3
4
5
6
7
8
|
syms K
H=syslin('c',(K*(s+20)/(s+1)*(s+2)*(s+10))
fmin=0.1;
fmax=100;
bode(H,fmin,fmax)
show_margins(H)
// for phase margin =30
printf("From bode plot it can be seen that gain should be reduced by 4db")
|