MATLAB Answers

editor multiple tabs

506 views (last 30 days)
Hello everybody,
I am currently working with Matlab on two different machines. In one of these, all the opened m files are on different tabs in the same editor; in the other, every time I open a new m file, it shows up in a new editor. I would prefere much more the first option, but I can not find it in the preferences, and also the HELP does not help. Do you know where can I modify it?

  1 Comment

Jan on 15 Jun 2011
Which Matlab version and OS are you using? How do you "open a new m file"? From the command window per "edit", from the editor or by a double click in the Windows Explorer?

Sign in to comment.

Accepted Answer

Michael Katz
Michael Katz on 17 Jun 2011
Try docking the editors first. It's the south-east pointing arrow in the right of the menu bar. If Editor windows are undocked then new ones will open up undocked as well. You can dock together multiple Editors and then undock the whole group, so you could have the Editor in a separate window. It's a little tricky to set up, but once you do, new editors will open up in the (un)docked group.


Show 8 older comments
Yunshan Jiang
Yunshan Jiang on 16 Mar 2017
That so clever! Thank you very much. It works for me on 2012a
Abolfazl Nejatian
Abolfazl Nejatian on 18 Nov 2017
thank you, dear @ Katz
Isabella Osetinsky-Tzidaki
Great! Thank you!

Sign in to comment.

More Answers (3)

Nnanyelugo Nwegbu
Nnanyelugo Nwegbu on 29 Aug 2019
I had the same problem. I resolved it by
> Undocking the editor
> Clicked on View Tab
> Clicked on drop down menu > Tabs position
Set the position you like from [Top, Bottom, Left, Right]. Mine was previously on "hide", so the reason I had the problem in the first place
Dock the editor


Sign in to comment.

juan pf
juan pf on 26 Mar 2014
I am having the same problem in the 2012 version of Matlab and cannot dock all the mfiles together in one window. Do you have any idea how I do it?
Regards, Juan


tayyebe sh
tayyebe sh on 16 Jul 2015
salam , i had this problem . in first click on the little pointer in the upper right of the editor , then Click the little downward pointing triangle in a circle in the upper right of the window and select "Undoc" , then ctll+n and enjoy :)
GiWon Hong
GiWon Hong on 7 Jul 2017
thanks a lot.

Sign in to comment.

Stefan Bleeck
Stefan Bleeck on 7 Dec 2017
right click on the title of the m-file.


Sign in to comment.

Community Treasure Hunt

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

Start Hunting!