Setting the default figure size in Matlab once.

132 views (last 30 days)
Shown below is the command I use to set the default figure position in Matlab.
set(groot,'defaultfigureposition',[400 250 900 750])
However as soon as I quit matlab and restart I must set the property again. I there a way to set this property in matlab so it always stays at the set values? forever?

Accepted Answer

Jan
Jan on 2 Mar 2018
Edited: Jan on 2 Mar 2018
Simply insert this line in your startup.m file. If you do not have such a file, create it.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!