
How to revert the figure behavior in MATLAB R2025a and newer to the R2024b style?
303 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 24 Mär. 2025
Bearbeitet: MathWorks Support Team
am 19 Jun. 2025
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.

Akzeptierte Antwort
MathWorks Support Team
am 18 Jun. 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 Kommentar
Walter Roberson
am 25 Mär. 2025
It might be necessary to use
set(groot, "defaultFigureMenuBar", "figure");
set(groot, "defaultFigureToolbar", "figure");
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Adding custom doc finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!