Setting default figure properties...

If you want MATLAB to always dock figures, set the default value of the WindowStyle property to docked.

The statement, "set(0, 'DefaultFigureWindowStyle', 'docked')", creates a default value for the WindowStyle property on the root level. Issuing this statement on the command line sets the WindowStyle of all figures for the duration of your MATLAB session (unless you change the value).

Placing this statement in your startup.m file facilitates dock figures.