how to plot in UIAxes in app designer

64 ビュー (過去 30 日間)
Ni2
Ni2 2019 年 10 月 25 日
コメント済み: Biraj Khanal 2022 年 6 月 9 日
i have written codes for a plot in .m file now i wanna plot the same thing in a interface made by using appdesigner.
this is my plotCapture1.PNG
i want to plot it here
Capture3.PNG

採用された回答

Ajay Kumar
Ajay Kumar 2019 年 10 月 25 日
編集済み: Ajay Kumar 2019 年 10 月 25 日
You can give axes handle in the plot.
for example, if you used
plot(x,y);
now, use
plot(app.UIAxes,x,y);
and ofcourse, the testtesttest function should have the handles of app.
  10 件のコメント
Deyan Prashna
Deyan Prashna 2022 年 4 月 29 日
Based on the experience I've tried and succeeded, try typing this:
imshow(picture.jpg,'Parent',app.UIaxes)
For the picture format, it can be other than .jpg., and pay attention to the field name of the UI Axes used.
Hope it helps ^_^
Biraj Khanal
Biraj Khanal 2022 年 6 月 9 日
How do you use fnplt for uiaxes?
plot(app.uiaxes,x,y) works but fnplt(app.uiaxes,cscvn(points)) does not. Does anyone have any suggestion?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by