How to revert the figure behavior in MATLAB R2025a and newer to the R2024b style?

300 visualizaciones (últimos 30 días)
I noticed that the default figure size in MATLAB R2025a is much larger than R2024b and previous releases. In addition, every new figure is put into the same figure container/window, like shown below.
Is there a way to revert to the figure behavior of MATLAB R2024b and before? That is, make the default figure size smaller, and have MATLAB open a new figure window each time I create a new figure.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 18 de Jun. de 2025
To make figures behave like in MATLAB R2024b, you need to add the commands below to your "startup.m" file:
set(groot, "defaultFigurePosition", [680 458 560 420]) set(groot, "defaultFigureWindowStyle", "normal")
You may need to adjust the "defaultFigurePosition" vector (i.e. [680 458 560 420]) depending on your monitor screen size.
If you do not already have a "startup.m" file, create one by following the instructions in the "startup" documentation.
After applying those changes, figures will be plotted in individual windows, as shown below:
  1 comentario
Walter Roberson
Walter Roberson el 25 de Mzo. de 2025
It might be necessary to use
set(groot, "defaultFigureMenuBar", "figure");
set(groot, "defaultFigureToolbar", "figure");

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Adding custom doc en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by