This shortcut replacement for matlab's figure command allows rapid switching between figures without the speed slow down caused by raising the figure window to the front every time it is made active, which is the default action for matlab's figure command. Using this routine figures can be plotted to even when iconified and is very handy when rapidly switching between figures.
Usage: h=myfigure(num) with optional input and output args
- if there no input figure number num, rutine creates a new figure which is raised to front and made active
- if num is specified and figure does not exist, routines creates figure num which is raised to front and made active
- if figure num already exits, this function makes it active (current) but does not raise it to the front
optionally returns figure handle of newly active figure
David Long (2021). myfigure (https://www.mathworks.com/matlabcentral/fileexchange/34392-myfigure), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!