Setting the default figure size in Matlab once.

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.

2 Comments

Thanks!! This is exactly what I was looking for.
This guy is the real MVP.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!