how to plot in UIAxes in app designer

208 Ansichten (letzte 30 Tage)
Ni2
Ni2 am 25 Okt. 2019
Kommentiert: Biraj Khanal am 9 Jun. 2022
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

Akzeptierte Antwort

Ajay Kumar
Ajay Kumar am 25 Okt. 2019
Bearbeitet: Ajay Kumar am 25 Okt. 2019
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 Kommentare
Deyan Prashna
Deyan Prashna am 29 Apr. 2022
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 am 9 Jun. 2022
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?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by