Hi guys,
I'm trying to use MATLAB GUI for my project. Do you happen to know how to show pzmap plot into app.UIAxes?

 채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 11일

1 개 추천

There are two pzmap().
For one of them, you pass in numeric parameters representing the state space of poles and zeros, and it constructs a system for you and draws the plot. This version cannot be passed information about where to draw, so it always ends up drawing in a traditional figure.
The second of the two pzmap(), you pass in a system that has already been constructed, such as a tf() . If you use this version, then you can pass a uiaxes as the first parameter and it will use that to draw into.

댓글 수: 3

Maria Sonon
Maria Sonon 2021년 3월 11일
I used the pzmap() code wherein it accepts numerator and denominator coeffiecients of the transfer function, converts into transfer function and gets the plot of the tf. Could you help me out how pass the parameters of it into uiaxes?
No, that pzmap() code can never draw into a uiaxes. In order to use that function you would have to let it draw into a traditional axes and then copy the contents over to the uiaxes.
Use the other pzmap() function instead:
sys = tf(numerator, denominator);
pzmap(app.UIAxes, sys);
Maria Sonon
Maria Sonon 2021년 3월 11일
OMG! You're a life saver!! Thank you so much!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Stability Analysis에 대해 자세히 알아보기

질문:

2021년 3월 11일

댓글:

2021년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by