Redirect Nyquist Plot To Axes

조회 수: 2 (최근 30일)
Heliolicity
Heliolicity 2015년 12월 9일
I've created a GUI with an axes that I've named axsDisplay. I'd like this axes to display the nyquist plot created using the following code
num = [1 2 3];
den = [1 2 3 4];
gt = tf(num, den);
handles.current_data = gt;
handles.axsDisplay = nyquist(handles.current_data);
In my OpeningFnc callback I've added the following line of code to ensure that the handles data is redirected to the axes object
axes(handles.axsDisplay)
I've also added a command button to the GUI that triggers the nyquist plot code when pressed. However this does not seem to be working as the axes is not updated with any data after I click the button. This is the output from the command window
>> clear
Warning: Log of zero.
> In log10 at 17
In @lti\private\roundfocus at 19
In lti.nyquist at 76
In MainApplication>cmdInitialise_Callback at 94
In gui_mainfcn at 75
In MainApplication at 44
What am I doing wrong here?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by