Filter löschen
Filter löschen

Plot clear using MATLAB app designer.

91 Ansichten (letzte 30 Tage)
Othman Alkandri
Othman Alkandri am 20 Jan. 2023
Kommentiert: Othman Alkandri am 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?

Akzeptierte Antwort

Voss
Voss am 20 Jan. 2023

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by