How to get Figure Container's Properties?

조회 수: 27 (최근 30일)
Naoto Nagaoka
Naoto Nagaoka 2025년 10월 20일
댓글: Fred Dilkes 2025년 12월 8일 16:11
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.
  댓글 수: 3
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.
Fred Dilkes
Fred Dilkes 2025년 12월 8일 16:11
According to the 2025a documentation the figure 'Position' property of a docked figure is "relative to its container."
Is there any reliable way to find the position of a docked figure relative to groot?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive 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