Focus doesn't switch from editor to command window when runnning m file R2025A

조회 수: 11 (최근 30일)
In release 2025A when I run an m file from the editor using the green run button the focus remains in the editor rather than switching to the command window as it used to in earlier releases
So if I have an input command in the m file with a prompt like Enter value of X, when I start typing my value I am typing in the editor rather than entering a value in the command window. I'm so used to doing this I am struggling to remember to do the extra click to refocus on the command window and then I have to go back an undo the characters in the m file.
I realise this is a minor problem but it is frustrating. Is there any way to switch the focus by some command in the m file?
  댓글 수: 1
Matt J
Matt J 2025년 7월 30일
편집: Matt J 2025년 7월 30일
rather than switching to the command window as it used to in earlier releases
There was never an automatic switch, generally. Maybe for specific commands like input(), the focus would switch.

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

채택된 답변

Catalytic
Catalytic 2025년 7월 30일
commandwindow
input('Something')

추가 답변 (1개)

Matt J
Matt J 2025년 7월 30일
Use inputdlg instead.

카테고리

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

태그

제품


릴리스

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by