MATLAB Answers


How can I set a preference for the MATLAB Editor/Debugger to open files in separate windows or in tabs in the same window?

Asked by MathWorks Support Team on 27 Jun 2009
Latest activity Commented on by Royi Avital
on 16 Jan 2016 at 9:56

In MATLAB 6.5, there was a preference setting for tabbed/untabbed behavior in the MATLAB Editor/Debugger. This preference is no longer listed in the "Preferences -> Editor -> Display" options list.


1 Answer

Answer by MathWorks Support Team on 18 Oct 2013
 Accepted answer

In MATLAB 7.0 and later versions, this information is an "implicit preference". MATLAB remembers the selection you made in the previous session, and continues that behavior. So, to set an "implicit preference" for separate, undocked windows, take the following steps:

1. Open a file in the Editor/Debugger.

2. Undock the file from the Editor/Debugger using either the undock button in the upper right corner or the "Desktop -> Undock <filename>" item.

3. Close the empty Editor/Debugger that is left behind after undocking the file.

4. Subsequently opened files will appear in individual undocked windows rather than being "tabbed" together. This implicit preference will be remembered across sessions and will remain in effect indefinitely unless you explicitly dock a file back into the Editor/Debugger.

To cause MATLAB to open files and automatically dock them in the Editor/Debugger, dock one file by clicking on the Dock button (an arrow pointing down and to the right) in the upper-right corner of the Editor/Debugger.

The Editor/Debugger also remembers other view settings, including the document arrangement selected from the "Window" menu or from the buttons in the upper-right corner of the Editor/Debugger window.


Royi Avital
on 16 Jan 2016 at 9:41

How can I restore the undocked editor window defaults (Size and Location)?

I can resize and move it manually but is there a way to reset it like resetting the Main Window default layout?

Thank You.

Royi Avital
on 16 Jan 2016 at 9:56

Found something using this:

The property "getLocation" and "setLocation". Though (0, 0) isn't exactly the top left corner.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!