Gain/phase margin calculation and the gain/phase cross over frequency
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mahabba Almheiri
el 5 de Dic. de 2020
Comentada: Mahabba Almheiri
el 5 de Dic. de 2020
Hello..
I used the below code to calculate the gain and phase margin. Also to calculate gain and phase cross over frequency but I didn't get any answer in the command window. So, what is the correct code.
syms s
G = tf([7 14],[1 10 24])
[Gm,Pm,Wcg,Wcp] = margin(G)
grid on
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/446718/image.png)
0 comentarios
Respuesta aceptada
Alexandre Riebel
el 5 de Dic. de 2020
I'd say your code is working correctly. Phase margin is measured at the frequency at which the gain crosses the 0 dB line (gain crossover frequency, Wcg) and gain margin is measured at the frequency at which the phase crosses the -180 deg line (phase crossover frequency, Wcp). So if your gain never crosses 0 dB then wcg = NaN and Pm = Inf which seems to be what's happening here.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!