How to get Figure Container's Properties?

31 views (last 30 days)
Naoto Nagaoka
Naoto Nagaoka on 20 Oct 2025 at 6:39
Moved: Walter Roberson on 30 Oct 2025 at 6:44
How can I get and set the properties of a Figure Container introduced in MATLAB 2025?
For example, I want to change the window state of a Figure Container (not the figure window state) to “Maximized” from a script.

Answers (2)

Naoto Nagaoka
Naoto Nagaoka about 13 hours ago
MATLAB Support has responded, stating that there is currently no way for users to access the properties of a Figure container. Therefore, it is not possible to modify the properties of a Figure container at this moment.
I have requested that a method be added to access these properties.
I will await the new version.

Taylor
Taylor on 22 Oct 2025 at 19:30
You can still just set the window state to maximized. It will force the figure container to be maximized.
figure("WindowState", "maximized")
Or are you trying to maximize the container without changing the size of the figure itself? If so, I do not believe that is possible.
  2 Comments
Naoto Nagaoka
Naoto Nagaoka on 23 Oct 2025 at 3:30
Moved: Walter Roberson 10 minutes ago
TThank you for your reply.
I would like to know how to get/set the properties of a Figure Container.
I want to use a script to perform actions like “maximize” or “minimize” on a Figure Container containing multiple figures all at once.
Taylor
Taylor on 23 Oct 2025 at 16:53
Moved: Walter Roberson 10 minutes ago
You can edit the default properties. See this if you want the properties to persist across MATLAB sessions.

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!