When I open previously saved FIG files they are opening all docked. How can I open these FIG files undocked so that each figure has its own figure window?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 9월 19일
답변: MathWorks Support Team
2019년 4월 25일
When I open previously saved FIG files they are opening all docked. How can I open these FIG files undocked so that each figure has its own figure window?
채택된 답변
MathWorks Support Team
2019년 4월 26일
When opening saved FIG files, the files can open in docked fashion if the 'WindowStyle' property of the figure is set to 'docked' instead of 'normal'. You can refer to the documentation for more details about this property:
You can verify this scenario after opening one of those FIG files and executing the following command in the MATLAB Command Window:
get(gcf, 'WindowStyle');
This should output 'docked'. To ensure that all these FIG files can be opened in their separate windows follow the steps below:
1. Open each figure
2. Execute the following command in the MATLAB Command Window to set the 'WindowStyle' property to 'normal':
set(gcf, 'WindowStyle', 'normal');
3. Save each figure
In order to ensure that the property 'WindowStyle' for future figures are set to 'normal' you can execute the following command at the beginning of each new MATLAB session:
set(groot, 'DefaultFigureWindowStyle', 'normal');
On the other hand, you can create a "startup" file as mentioned in the documentation here:
and place the above command within that file. The "startup" file will be automatically executed during MATLAB starts each time and you do not have to manually execute the command manually each time.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!