App Designer button click again

2 Ansichten (letzte 30 Tage)
Lev Mihailov
Lev Mihailov am 12 Mai 2020
Beantwortet: Cris LaPierre am 12 Mai 2020
Hello! Do I need the first click of the button to delete the chart and all its contents, and the second click to return everything is possible?
function VisiblePlotButtonPushed(app, event)
app.plot.Visible = 'off';
end
Now I use this method, but it does not remove the contents of the chart

Antworten (1)

Cris LaPierre
Cris LaPierre am 12 Mai 2020
Try this instead
cla(app.UIAxes)

Kategorien

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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by