Dockfig/Undockfig

Programmatically dock or undock one or all open figures.

You are now following this Submission

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 (2026). Dockfig/Undockfig (https://www.mathworks.com/matlabcentral/fileexchange/18194-dockfig-undockfig), 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.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.)