how to plot in UIAxes in app designer
207 次查看(过去 30 天)
显示 更早的评论
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 plot
i want to plot it here
0 个评论
采纳的回答
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
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
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!