figureExists(h)

Version 1.0.0.0 (932 Bytes) by Sugato
This function returns the status if a given figure handle exists.
18 Downloads
Updated 12 Aug 2017

View License

Function Description
This function returns the status if a given figure handle exists.

AUTHOR: Sugato Ray | Created on: 07-JUL-2017 | ray.sugato[at]gmail.com

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLEASE ACKNOWLEDGE THE AUTHOR IF YOU USE THIS CODE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INPUT:
h = figure handle

OUTPUT:
status = 1 when figure handle exists
status = 0 when figure handle DOES NOT exist

EXAMPLE:
status = figureExists(h);
status = figureExists(2); % check if figure 2 exists

Cite As

Sugato (2025). figureExists(h) (https://se.mathworks.com/matlabcentral/fileexchange/64097-figureexists-h), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Handle Classes in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0