How to undock windows by deafult?

조회 수: 21 (최근 30일)
xiaobo wu
xiaobo wu 2025년 7월 29일
편집: dpb 2025년 8월 1일
Recently, I re-installed R2022b on my computer, but all windws are docked after I ran my scripts. They were always undocked previously. I couldn't find any options in Preference to change the setting. I talked with Chatgpt with the answer: set(0, 'DefaultFigureWindowStyle', 'normal'); But it only works inside a script, but not in other scripts. Any help is appreciated!

채택된 답변

dpb
dpb 2025년 7월 29일
이동: Matt J 2025년 7월 31일
Manually rearrange as you wish and then exit; it will reload as they were last set.
  댓글 수: 2
xiaobo wu
xiaobo wu 2025년 7월 31일
It did work partially. It seems I have no other choice. Thank you!
dpb
dpb 2025년 8월 1일
편집: dpb 2025년 8월 1일
What, specifically, have you tried to rearrange and that isn't reproduced? I've never noticed any such behavior with R2021b and R2022b, but then again, I only keep the command window undocked and open; it will restore the editor session as it was if I exit with it open. I don't use any of the other windows normally, so there quite possibly is something in your selection I don't see...
I doubt Mathworks is going to make any changes in these versions other than serious computing bugs, particularly as they have now introduced the new UI so much of what was is no longer so such patches would be of little or no value to the new code base going forward.

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

추가 답변 (1개)

Catalytic
Catalytic 2025년 7월 31일
But it only works inside a script, but not in other scripts
Once you run it in one script, the effect will persist for the entire Matlab session. To make it persist across future Matlab sessions, put it in your startup script.
  댓글 수: 1
xiaobo wu
xiaobo wu 2025년 7월 31일
I have a group of scripts which connect to each other. Each script will generate a new window. I hope the wondws pop up separately. Anyway, adding it into each script works. Thank you both!

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by