Clear image in GUI?
7 次查看(过去 30 天)
显示 更早的评论
Hi,
Is there another way to clear image in axes beside using the following code?
cla(handles.im1,'reset')
If i use this, it even clears the ButtonDownFcn of my axes.
Thanks
0 个评论
采纳的回答
更多回答(2 个)
Paulo Silva
2011-7-10
Just delete the children of the current axes
delete(get(gca,'Children'))
The buttondownfcn of the axes remains unchanged
norfaizayu
2012-1-30
i cannot run the source code. is it just put the coding?i have 3 axes to be clear in gui. so how can i clear it?
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!