[英]Phase Wrap - Matlab Bode Plot
A quick question! 一个快速的问题!
I am using MATLAB R2015b. 我正在使用MATLAB R2015b。 While using bode plot with option 'PhaseWrapping' --> on I am getting the limit from 0 to 360 instead of convention -180 to 180. I can't find anything on the net. 在使用带有选项'PhaseWrapping'->的波特图时,我得到的限制从0到360,而不是约定的-180到180。我在网上找不到任何东西。 Any answers would be much appreciated. 任何答案将不胜感激。
Thanks! 谢谢!
Minimum Working Example 最低工作实例
PP = bodeoptions;
PP.Grid = 'on';
PP.XLabel.FontSize = 12;
PP.YLabel.FontSize = 12;
PP.Title.FontSize = 12;
PP.Xlim = [1e-3 1e3];
PP.PhaseWrapping = 'on';
s = tf('s');
temp = 1/s;
bode(temp,PP);
What this should give me is a phase of -90 but it gives me 270 . 这应该给我一个-90的相位,但是给我270 。
Bode plots have also the option of adjust phase offsets. 波特图还可以选择调整相位偏移。 You can either find the option in the right-click menu--> Properties...
--> Options
or adjust it via 您可以在右键菜单-> Properties...
> Options
找到该选项,也可以通过
PP.PhaseMatching = 'on'
PP.PhaseMatchingFreq = 1
PP.PhaseMatchingValue = -90
In 2016b MWE shows -90 by default though. 在2016b中,MWE默认显示为-90。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.