App Designer button click again

2 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2020 年 5 月 12 日
回答済み: Cris LaPierre 2020 年 5 月 12 日
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 日
Try this instead
cla(app.UIAxes)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by