필터 지우기
필터 지우기

Plotting Points On A Nyquist Curve

조회 수: 7 (최근 30일)
Heliolicity
Heliolicity 2016년 3월 8일
댓글: Heliolicity 2016년 4월 19일
Hi folks,
MATLAB newbie here but unfortunately I've been presented with a rather complex MATLAB question that I need some help with.
I need to create a MATLAB GUI with an axes object that will display the Nyquist plot of a transfer function (the TF will ultimately be specified by the user but for the moment I'm using a hard-coded value).
I can create a Nyquist plot easily enough and I have managed to ensure that it doesn't appear as a Figure but instead appears on the axes object of the form. But the next requirement is far more difficult to me.
The program needs to select 50 points at random along the curve and display them as coloured dots or pixels. I know that the NYQUIST function returns the real and imaginary numbers of a Nyquist plot as a matrix of values - is there a way to use that information to choose points along the curve?
Thanks

채택된 답변

Craig
Craig 2016년 3월 15일
This would allow you to plot points on the nyquist plot for different frequencies.
sys = tf(1,[1,1,1]);
nyquist(sys);
hold on;
w = logspace(-2,2,100); % these points could be picked randomly
nyquist(sys,'*',w)
  댓글 수: 1
Heliolicity
Heliolicity 2016년 4월 19일
Many thanks, Craig - very useful

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by