Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hFig = figure(...your arguments here...);
- hFig = findobj(...your property/value pairs here...);
- close(hFig);
- delete(hFig);
- ishandle(hFig) % Returns 'true' if the figure exists, 'false' if it doesn't
- get(hFig,'Visible') % Returns 'on' or 'off'
- set(hFig,'Visible','off') % Makes a figure invisible,
- % but it still exists (i.e. it's not closed)
- >> close all
- >> get(0,'children')
- ans =
- Empty matrix: 0-by-1
- >> figure(1)
- >> get(0,'children')
- ans =
- 1
- >> figure(3)
- >> get(0,'children')
- ans =
- 3
- 1
- isempty(findobj('name','Your_Figure_Name'))
Add Comment
Please, Sign In to add comment