how to plot in UIAxes in app designer
조회 수: 171 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!