How do i plot nyquist from experiment data values

조회 수: 7 (최근 30일)
Niam
Niam 2017년 1월 30일
댓글: Star Strider 2017년 1월 31일
From the code in this page https://www.mathworks.com/help/control/ref/nyquist.html
if true
% load iddata2 z2;
sys_p = tfest(z2,2);
w = linspace(-10*pi,10*pi,512);
[re, im, ~, sdre, sdim] = nyquist(sys_p,w);
re = squeeze(re);
im = squeeze(im);
sdre = squeeze(sdre);
sdim = squeeze(sdim);
plot(re,im,'b', re+3*sdre, im+3*sdim, 'k:', re-3*sdre, im-3*sdim, 'k:')
end
Can i ask where is the part i input my experimental data values or the meaning of codes ? Sorry as i'm kind of new to Matlab with little guidance. Any help is appreciated !

채택된 답변

Star Strider
Star Strider 2017년 1월 30일
If you just want the plot, do a separate nyquist call without any outputs:
figure(1)
nyquist(sys_p,w)
That should produce the plot you want.
  댓글 수: 6
Niam
Niam 2017년 1월 31일
Thank you ! I'll try it out !
Star Strider
Star Strider 2017년 1월 31일
My pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by