Why is MATLAB giving me the wrong Bode phase plot?

조회 수: 18 (최근 30일)
Gongwei Chen
Gongwei Chen 2019년 11월 10일
답변: Urmila Rajpurohith 2019년 11월 14일
I plotted
demo.png
using
Z=[];
P=[1,-1];
K=100
G=zpk(Z,P,K);
G
bode(G)
And got
demo.png
But it should be 0 deg not -180.

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2019년 11월 14일
The Bode Phase plot which you got is correct because the transfer function is written as
G=(-100)/((1+jw)(1+(-1)jw))
When you calculate phase angle then
For (1+jw) the phase angle is= -atan(w)
For (1+(-1)jw) the phase angle is which is -atan(-w) written as atan(w)-180
So, the overall phase angle becomes ɸ =-atan(w) + atan(w)-180
ɸ = -180
So, the Phase plot you will get at -180 deg.Here atan is nothing but inverse of tan.

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by