Gain and phase margin + phase and gain crossover frequeny results

조회 수: 26 (최근 30일)
Mahabba Almheiri
Mahabba Almheiri 2020년 12월 5일
댓글: Gollapapani 2023년 8월 11일
I used this code to find phase and gain margin. Also to find phase and gain crossover frequeny
syms s
G = tf([7 14],[1 10 24])
[Gm,Pm,Wcg,Wcp]=margin(G)
grid on
but I got this result. can any one explain to me why Gm and Pm = Inf and Wcg and Wcp= NaN?
and what is maning of Inf and Nan?
G =
7 s + 14
---------------
s^2 + 10 s + 24
Continuous-time transfer function.
Gm =
Inf
Pm =
Inf
Wcg =
NaN
Wcp =
NaN

답변 (2개)

Keerthana Chiruvolu
Keerthana Chiruvolu 2020년 12월 8일
Hi,
Firstly, NaN means Not A Number and inf is infinite.
From the bode plot of the transfer function, we can observe that the Magnitude plot doesn’t cross 0. And the phase is not 180° at any frequency.
Wcp - 0-dB gain crossing frequency.
Wcg -180° phase crossing frequency
To calculate the gain and phase margins we require the crossover frequencies. Hence, the result for Wcp , Wcg is NaN and Gm, Pm are inf.
.For more information, please refer the following functions :margin(), bode()
  댓글 수: 1
Gollapapani
Gollapapani 2023년 8월 11일
how to deal with complex coefficients as margin doesn't work on it

댓글을 달려면 로그인하십시오.


Kingsley Osubor
Kingsley Osubor 2021년 8월 17일
How can we explain a bode diagram with Gm with Infinity, Pm with infinity, Wcg with infinity and Wcg with not a number value.

카테고리

Help CenterFile Exchange에서 Stability Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by