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

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.

 Accepted Answer

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 Comment

It might be necessary to use
set(groot, "defaultFigureMenuBar", "figure");
set(groot, "defaultFigureToolbar", "figure");

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!