Gain/phase margin calculation and the gain/phase cross over frequency

조회 수: 7 (최근 30일)
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

채택된 답변

Alexandre Riebel
Alexandre Riebel 2020년 12월 5일
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.
  댓글 수: 1
Mahabba Almheiri
Mahabba Almheiri 2020년 12월 5일
thank you.. I have one more question..
Then what about the Gm and Wcp. If the result in command window is like that below
Gm =
Inf
Pm =
Inf
Wcg =
NaN
Wcp =
NaN

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by