DFIG: Create a docked figure window

A (trivial but) convenient shortcut to create a docked figure window

You are now following this Submission

DFIG works exactly as FIGURE, except that the figure is docked.

DFIG, by itself, creates a new docked figure window, and returns its handle.

DFIG(H) makes H the current figure and docks it. If Figure H does not exist, and H is an integer, a new figure is created with handle H.

DFIG is similar to DOCKF (File 12608), except that the behavior of DFIG is closer to that of FIGURE: when no argument is given, DFIG opens a new docked figure.

Cite As

Frederic Moisy (2026). DFIG: Create a docked figure window (https://in.mathworks.com/matlabcentral/fileexchange/16334-dfig-create-a-docked-figure-window), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Simple DOCK/UNDOCK commands, dock and undock figures

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.0.0.0