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

7 visualizzazioni (ultimi 30 giorni)
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 Commento
Matt J
Matt J il 30 Lug 2025
Modificato: Matt J il 30 Lug 2025
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.

Accedi per commentare.

Risposta accettata

Catalytic
Catalytic il 30 Lug 2025
commandwindow
input('Something')

Più risposte (1)

Matt J
Matt J il 30 Lug 2025
Use inputdlg instead.

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Prodotti


Release

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by