selectfigure

Select a figure by text string, rather than by number, avoiding conflicts between scripts.

You are now following this Submission

To create/select a figure, you would usually use a command such as "figure(1)". Trouble with this is that, if you run multiple scripts as part of an analysis, they can end up stamping on each others' figures. An alternative is to create a figure using just "figure", but this will generate many many figure windows and make you wild and crazy.

This function provides a new way of selecting a figure based on a text string, e.g. "selectfigure 'Plot of people against cake'", making conflicts a thing of the past.

Cite As

Ben Mitch (2026). selectfigure (https://www.mathworks.com/matlabcentral/fileexchange/29476-selectfigure), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interactive Control and Callbacks 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.1.0.0

whoops - fixed stupid bug

1.0.0.0