转自:http://www.mathworks.co.uk/help/matlab/creating_plots/docking-figures-in-the-desktop.html
If you want MATLAB to always dock figures, set the default value of the WindowStyle property to docked. The following 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).
Place this statement in your startup.m file to make MATLAB always dock figures. See startup for more information on startup.m.