app designer UIAxes plot

app.Image.ImageSource = data;
hold(uiaxes,'on')
plot....
the code is above, I want to add a plot in the image, but how to determine the "UIAxes" ?
for help
thank you

1 commentaire

Geoff Hayes
Geoff Hayes le 29 Avr 2020
lenwen - wouldn't you have added an uiaxes to your app and perhaps accessible via app.UiAxes?

Connectez-vous pour commenter.

Réponses (1)

Adam Danz
Adam Danz le 29 Avr 2020
Modifié(e) : Adam Danz le 4 Mai 2020

0 votes

You have the right idea to specify an axis handle but it looks like you're not using the handle.
uiax = uiaxes(); % Create the UIAxes, store the handle.
hold(uiax, 'on') % specify the UIAxes
plot(uiax, x, y) % specify the UIAxes

Catégories

En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange

Modifié(e) :

le 4 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by