Plot clear using MATLAB app designer.

110 visualizaciones (últimos 30 días)
Othman Alkandri
Othman Alkandri el 20 de En. de 2023
Comentada: Othman Alkandri el 20 de En. de 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?

Respuesta aceptada

Voss
Voss el 20 de En. de 2023

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by