App Designer button click again

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

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 5 月 12 日

0 投票

Try this instead
cla(app.UIAxes)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

質問済み:

2020 年 5 月 12 日

回答済み:

2020 年 5 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by