editing a nyquist figure
83 次查看(过去 30 天)
显示 更早的评论
How can I edit a nyquist figure or how can I plot a nyquist diagram using MATLAB such that it just consists positive frequencies and not negative ones ?
0 个评论
采纳的回答
Teja Muppirala
2011-3-30
Run the nyquist command as usual:
nyquist([1],[1 2 1])
Then if you right click on the axes (the white part), a context menu will pop up and in the third option you can select not to show the negative frequencies.
更多回答(2 个)
Nick Dienemann
2022-5-24
You can use the following code to turn of plotting of the negative frequencies within your code. Spares you the time to disable them manually in the plot window as suggested by Teja.
num= [-1 1]; %numerator
den= [2 2]; %denominator
G = tf(num,den)
%-------------- Nyquist diagramm --------------------------
plotoptions= nyquistoptions('cstprefs') ; % default options
plotoptions.ShowFullContour = 'off'; % exclude negative frequencies
nyquist(G,plotoptions)
1 个评论
Nick Dienemann
2022-5-24
find https://de.mathworks.com/help/control/ref/nyquistoptions.html for more options concerning the nyquist plot.
Arnaud Miege
2011-3-28
" nyquist(sys,w) explicitly specifies the frequency range or frequency points to be used for the plot. To focus on a particular frequency interval, set w = {wmin,wmax}. To use particular frequency points, set w to the vector of desired frequencies. Use logspace to generate logarithmically spaced frequency vectors. Frequencies should be specified in rad/sec."
Either specify a positive frequency interval or a vector of positive frequencies.
HTH,
Arnaud
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classical Control Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!