The axe is cleared entirely when using cla function
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Paula
le 23 Juin 2023
Réponse apportée : Steven Lord
le 23 Juin 2023
In my app designer, I have created two axes that display different things. One of the axes is specifically designed to show a picture. This picture can be added to the axes by clicking a button. The second axe displays a colormap of some data from a tabel. Additionally, I have created a button that allows me to reset everything in the app. However, when I press the reset button, the axe with the picture clears entirely, but i want only the content from it to be cleared.
This is the code that I have used
% Reset the UIAxes
cla(app.UIAxes);
%Reset the UIAxes2_2
cla(app.UIAxes2_2);
0 commentaires
Réponse acceptée
Steven Lord
le 23 Juin 2023
So all you want is for the image in the axes to be removed, but for the axes properties to remain unchanged? I'd probably store the handle to the image in a property of the app and call delete the image handle when you want the image to be removed.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Preview and Device Configuration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!