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?
1 次查看(过去 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!