필터 지우기
필터 지우기

Dispaly zpk output to a panel in a GUI instead of the command line.

조회 수: 4 (최근 30일)
Dick Curran
Dick Curran 2020년 11월 18일
댓글: Dick Curran 2020년 11월 24일
I really like the zpk display at the command line, such as:
sys =
0.010696 z (z-1) (z-0.9987) (z+0.07142)
---------------------------------------
z^2 (z-1) (z-0.4199)
Sample time: 2.6882e-05 seconds
Discrete-time zero/pole/gain model.
I want to get that same text written on a panel in a GUI. How can do that?
Thanks,
Dick Curran
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2020년 11월 19일
hello
there are probably many possibilities
i would suggest to look at plt created by Paul Mennen
beside being a very useful package for displaying data , yiu can also create lots of nice GUI
hope it helps

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

채택된 답변

Rashed Mohammed
Rashed Mohammed 2020년 11월 24일
Hi Dick Curran
You can use the evalc function to store the output in a variable and then use it in a uitextarea to display the output in a figure/panel. Below is an example you can find helpful
sys = zpk(zeros,poles,gain,ts);
output = evalc('sys');
fig = uifigure;
p = uipanel(fig);
txt = uitextarea(p,'Value',output);
Hope this helps.

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by