How to get Figure Container's Properties?

6 ビュー (過去 30 日間)
Naoto Nagaoka
Naoto Nagaoka 2025 年 10 月 20 日
移動済み: Walter Roberson 2025 年 10 月 30 日
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.

回答 (2 件)

Naoto Nagaoka
Naoto Nagaoka 2025 年 10 月 30 日
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 2025 年 10 月 22 日
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 件のコメント
Naoto Nagaoka
Naoto Nagaoka 2025 年 10 月 23 日
移動済み: Walter Roberson 2025 年 10 月 30 日
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 2025 年 10 月 23 日
移動済み: Walter Roberson 2025 年 10 月 30 日
You can edit the default properties. See this if you want the properties to persist across MATLAB sessions.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by