How delete property of a GUI?

I have designed an animation on GUI ,How can I delete the aniamtion please ?I dont want to close the figure just removing the aniamation and start to animate again.

 Risposta accettata

Cris LaPierre
Cris LaPierre il 14 Gen 2021
Try cla. You need to include your gui axes object.
cla(app.UIAxes)

3 Commenti

Thank for your advise.I have tried but it does not work for animation. I used the code which patch for animation.the problem might be patch which does not Have axis . So,it does not reset or delete what is animated with patch. Thank you
cla will clear patches. Anything you plot is on an axes.
This might be easier if you share your code for creating the animation.
Thank you for your answer. I just understand to how delete it with delete(). Thank you

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by