Dockfig/Undockfig

Programmatically dock or undock one or all open figures.
2.3K Downloads
Updated 1 Sep 2016

View License

dockfig(FIG)
Docks figure with handle FIG, and brings it to the front.

dockfig('all')
Docks all open figures
undockfig(FIG)
Undocks figure with handle FIG, and brings it to the front.

undockfig('all')
Undocks all open figures

Cite As

Brett Shoelson (2024). Dockfig/Undockfig (https://www.mathworks.com/matlabcentral/fileexchange/18194-dockfig-undockfig), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interactive Control and Callbacks 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.2.0.1

Updated license

1.2.0.0

added Mathworks copyright to license and M files

1.1.0.0

added copyright

1.0.0.0

Per John's suggestion, providing default behavior when no input is provided. (Operates on current figure.)