How to clear a plot in app designer to plot it again with new results?
Afficher commentaires plus anciens
Hello! I have an app in appDesigner (image 1). When I press the button "Couplig Relations", there is a method which is done and when it finishes, it plot some figures (image 2). The problem is if I change the fields "Number of iterations" or "Error threshold" and I press the "Coupling Relations" button again, I want that the previous plots desapear and I the end plot the new ones.
At the moment I am trying to use cla (image 3), but it doesn't work (image 4). Have you got some suggestion? Thank you so much!
2 commentaires
Kevin Holly
le 10 Mai 2022
Are you programatically creating your axes? Are app.Error and app.Plot1 UIAxes handles?
Bárbara Matos
le 10 Mai 2022
Modifié(e) : Bárbara Matos
le 10 Mai 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!