To dock the figure window in Matlab, create a file named
startup.m
in Matlab's default directory and add the following line.
set(0,'DefaultFigureWindowStyle','docked')
In case you don't know where the default directory is, open Matlab and enter the command
pwd
in the command window.
To revert the docking behavior, either change the line in
startup.m
to
set(0,'DefaultFigureWindowStyle','normal')
or delete
startup.m
.
No comments:
Post a Comment