View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.65 KB File ID: #40284 Version: 1.0




Return the handle to a figure with a specified tag

| Watch this File

File Information

figtagged is a MATLAB function that makes it easy to refer to figures using text 'tags' rather than numeric figure handles. This is particularly useful when creating figures from scripts, since you often want to re-use a window between runs. (The usual alternatives are closing all the windows, which loses positioning and layout, and hard-coding figure numbers, which can interact badly with other scripts and functions.)

You can tag figures in MATLAB already, but this function makes it a bit more convenient.


h = figtagged('thetag') returns a handle to a figure window with the 'Tag' property set to 'thetag'. If there is already a figure window with the specified tag, it will be cleared and reused; otherwise, a new figure is made.


hFig = figtagged('mytag2');

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us