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

303 Ansichten (letzte 30 Tage)
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
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:

Weitere Antworten (0)

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!

Translated by