App Designer button click again

1 次查看(过去 30 天)
Lev Mihailov
Lev Mihailov 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 CenterFile Exchange 中查找有关 Develop 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