closing a specified figure (if exist)
45 views (last 30 days)
Show older comments
does anyone know how to close a specified figure if it exists currently? for example: h=figure
if h exists close(h) end
0 Comments
Accepted Answer
More Answers (2)
Zoltan Gal
on 13 Apr 2019
If the index of figure is 5, then
close(findobj('type','figure','number',5))
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!