how to clean a panel which contains axes?
1 次查看(过去 30 天)
显示 更早的评论
I have a function that generates an array of axes but the number of axes that are generated is not constant, neither their position. So, i want every time that main function calls this function, to clean the panel before the new axes will be produced.
3 个评论
Mario Malic
2020-10-11
编辑:Mario Malic
2020-10-11
It should be done in the code where the figure is created (maybe prior to calling the function), or you can pass a figure handle to that function and clear it in there.
采纳的回答
Ameer Hamza
2020-10-11
You can use findall() to find the children axes
delete(findall(p, 'type', 'axes')); % p is handle of panel
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!