New Script keeps opening in new window instead of a tab

402 visualizaciones (últimos 30 días)
Hail
Hail el 31 de Jul. de 2014
Comentada: Jonathan el 6 de Mzo. de 2025
So, stupid question. I accidentally did something on my script file and now when I hit new script, it opens a new script in a new window instead of a new tab. Can someone tell me what I did and how to reverse it.
Thanks
  1 comentario
Sachin Motwani
Sachin Motwani el 24 de Sept. de 2020
There can't be a simpler description of my problem. Never thought would find it here.

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 31 de Jul. de 2014
The only thing I can think of is to go to the small downward-pointing arrowhead in a circle in the upper right of the Editor’s toolstrip (the tooltip for it is ‘Show Editor Actions’, click on it, click on ‘Dock Editor’ and see if that works. According to the menu, CTRL+D might have the same effect.
  72 comentarios
Justin
Justin el 12 de Feb. de 2025
A very quick way to fix this, if docking and moving windows around isn't working well for you is:
1) Click the Home tab
2) Click the down arrow under Layout, under the Environment section
3) Click the Default setting.
This will return all the window to their original position, with the script up top, the Command window at the bottom, Workspace(variables&values) to the right, and current folder to the left.
Also, greetings from February 2025!
Simon
Simon el 26 de Feb. de 2025
I tried to do what you did but the script still doesn't appear on my window. Do I have to reinstall matlab ?

Iniciar sesión para comentar.

Más respuestas (3)

Sylvain Cornelus
Sylvain Cornelus el 23 de Mzo. de 2019
Editada: Sylvain Cornelus el 23 de Mzo. de 2019
Just to add to Star Strider's repsonse:
In case people are having trouble finding it, look for the very top right blue bar, grey circle and down arrow, "Dock filename.m"
CTRL+SHIFT+D was the default command for me in R2018b.
  14 comentarios
Jonathan
Jonathan el 6 de Mzo. de 2025
cmd + ctrl + D for mac

Iniciar sesión para comentar.


Avner Atias
Avner Atias el 1 de Mayo de 2018
The above answers works just fine. Another thing though, if you want the editor to be in a separate window and tab for each function, you can drag it OUT of docking in the MATLAB workspace window.

Justin
Justin el 12 de Feb. de 2025
A very quick way to fix this, if docking and moving windows around isn't working well for you is:
1) Click the Home tab
2) Click the down arrow under Layout, under the Environment section
3) Click the Default setting.
This will return all the window to their original position, with the script up top, the Command window at the bottom, Workspace(variables&values) to the right, and current folder to the left.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by