Create and activate figures by name

Finds and activates, or creates, figure with user-specified name.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Brett Shoelson (2026). Create and activate figures by name (https://www.mathworks.com/matlabcentral/fileexchange/18220-create-and-activate-figures-by-name), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Graphics Objects in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0

R2014b ready.

Download
1.2.0

Fixes a bug when togglefig is called with no input arguments. Thanks to Danilo for pointing it out!

Download
1.1.0

I added a new (optional) input argument that triggers a CLF (clear-figure) command.

Download
1.0.0

Minor modification to suppress handle generation if no output is requested.

Download