Plot clear using MATLAB app designer.

77 vues (au cours des 30 derniers jours)
Othman Alkandri
Othman Alkandri le 20 Jan 2023
Commenté : Othman Alkandri le 20 Jan 2023
Hello,
I am trying to clear the UIAxies using a push button. Once the user clicks the button, it should remove the axis limitations and labels. I used the following command.
function plotclearButtonPushed(app, event)
cla(app.UIAxes)
end
The clear button erases the plot. However, it doesn't reset the UIAxes by removing the legend and the axis limation. Is there a better command to use?

Réponse acceptée

Voss
Voss le 20 Jan 2023

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by