Plot clear using MATLAB app designer.

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?

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Preguntada:

el 20 de En. de 2023

Comentada:

el 20 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by