Different margins using Bode and allmargin

15 visualizaciones (últimos 30 días)
Patrick Snitjer
Patrick Snitjer el 19 de Dic. de 2022
Respondida: Paul el 19 de Dic. de 2022
Hello,
I have this weird problem that I cannot wrap my head around.
I have a transfer function of which I would like to know the stability margins.
Using the bode plot, the minnimum gain margin is 21 dB at a frequency of 6.9e3 rad/s. Using the allmargin function (and the standard margin function), the smallest gain margin is given as 11 dB at 6.9e3 rad/s.
Looking further, all of the frequencies of the margins are the same between the bode and margin functions, but the margins themselves differ. Except the phase margin, which is similar.
Which one can I trust the most?

Respuestas (1)

Paul
Paul el 19 de Dic. de 2022
allmargin returns the gain margin in absolute units, not dB. Converting the allmargin result to dB yields:
20*log10(11.1664)
ans = 20.9583
margin also returns the output argument Gm in absolute units, though it displays in dB if using the no-output form to show the Bode plot.

Categorías

Más información sobre Time and Frequency Domain Analysis en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by