App Designer button click again

2 visualizzazioni (ultimi 30 giorni)
Lev Mihailov
Lev Mihailov il 12 Mag 2020
Risposto: Cris LaPierre il 12 Mag 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

Risposte (1)

Cris LaPierre
Cris LaPierre il 12 Mag 2020
Try this instead
cla(app.UIAxes)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by