For the negative feedback control system below use the MATLA
For the negative feedback control system below, use the MATLAB command margin to obtain the gain margin (in dB) and the phase margin (in degrees) for the cases: K = 10 K= 100 Use these gain and phase margins to determine whether the system is stable or unstable for each value of K. Hand in your code.
Solution
%MATLAB CODE-a)
sysa=tf(10,[1 6 5 0])
[Gm,Pm,Wgm,Wpm]=margin(sysa)
%b)
sysb=tf(100,[1 6 5 0])
[Gm,Pm,Wgm,Wpm]=margin(sysb)
%from results you can say that b) is unstable
