How to permanently undock all future generated figures R2025a

I have just updated from 2021a to 2025a and I cannot seem to figure out how to make my figures that I generate stop from being always docked in the figures window. I want each figure, from now on and forevermore, to generate in a seperate window like they used to do.
Alternatively, is there is a way to control the Figures window (where they all dock) via code?

 Accepted Answer

Put the line
set(groot, "defaultFigureWindowStyle", "normal");
in your startup.m file.

4 Comments

OK, so I have to set this upon boot each time. There isnt just a setting that I can flip and it stays on?
There is no setting that you can just flip and it stays on.
Changing the 'default' settings for groot only last for the existing session, and are reset when you next start MATLAB.
MATLAB does not happen to control this particular facility by way of setpref() / getpref()
Thank you so much, it worked well, I was hunting a lot about the same :)
I think this should be more widely documented, because the default behavior in R2025a (docked figures) can surprise longtime MATLAB users.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2025a

Asked:

on 13 Jun 2025

Moved:

on 11 Dec 2025

Community Treasure Hunt

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

Start Hunting!