Clearing a Panel - AppDesigner
显示 更早的评论
Hi, I am creating an App that utilizes the add-on myaxisc, which creates figures with many y axis in a panel object. I am looking for a way to completely clear the panel, as I am replotting many times based on user input. Would really appreciate any help
Thanks,
Garrett
1 个评论
Jordan
2023-8-9
Can you share the code for using myaxisc in app designer? I just found this add-on and want to understand it a bit better.
Thanks!
采纳的回答
更多回答(2 个)
长耕
2024-8-7
1 个投票
maybe its a bit too late but I faced the same problem and found the solution.

you can click the "canvas" button and convert it to "no auto adjustable layout app", then you will be able to delete a panel.
Jonathan Wharrier
2024-1-26
There is a very simple way...
delete(app.panelName.children);
this will completely clear the panel of all objects attached to it.
类别
在 帮助中心 和 File 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!