Setting the default figure size in Matlab once.

136 vues (au cours des 30 derniers jours)
Zachary Reinke
Zachary Reinke le 2 Mar 2018
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?

Réponse acceptée

Jan
Jan le 2 Mar 2018
Modifié(e) : Jan le 2 Mar 2018
Simply insert this line in your startup.m file. If you do not have such a file, create it.
  2 commentaires
Zachary Reinke
Zachary Reinke le 4 Mar 2018
Thanks!! This is exactly what I was looking for.
Berkay Soyluoglu
Berkay Soyluoglu le 18 Avr 2019
This guy is the real MVP.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by