| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
Scan the illustrations in the following examples for a desktop arrangement similar to what you want, and then follow the brief instructions to achieve the arrangement. There are many different ways to accomplish the result; these instructions present just one way. The instructions might not apply exactly, depending on how your desktop looks before you start. For details, see Opening and Arranging Desktop Tools and Opening and Arranging Desktop Documents.
This example shows two ways you can increase the size of a tool:
Move a tool outside of the desktop to increase its size.
In the illustration that follows, the Help browser is outside
of the desktop and made larger. To move a tool outside of the desktop,
click the Undock button
in the title bar of the tool when the
tool is in the desktop.
Group tools inside the desktop, and then access a particular tool by clicking the name of that tool in the title bar.
In the illustration that follows, the Command Window, Command History, Workspace browser, and Current Folder browser appear together as a group. To achieve this arrangement, drag the title bar of one tool on top of the title bar of the tool (or tools) with which you want to group it.

This example shows a way you can temporarily increase the size
of a tool so that it occupies the entire area of the desktop. In this
example, the Command Window is temporarily maximized by clicking the
Maximize button
in the Command Window title bar.

In this example, you return the maximized Command Window to
its size and position in the desktop by clicking the Restore button
in the title bar.

Minimize a tool in the desktop to give the remaining desktop tools more space in the desktop. Minimizing is available on Microsoft Windows and UNIX[1] platforms. This illustration shows the button and associated tooltip for minimizing the Command History window to the left edge of the desktop.

This illustration shows the Command History minimized. It appears as a button along the left edge.

To view or use a minimized tool temporarily, hover over or click the button representing the minimized tool. MATLAB temporarily displays the tool. This illustration shows the minimized Command History temporarily open, as a result of hovering over the button.

When you select another tool, the tool on temporary display becomes minimized again.
To return the Command History to the position and size it occupied in the desktop before minimizing, do one of the following:
Click the button representing the minimized tool,
and then click the Restore button
.
Right-click the button representing the minimized tool, and then choose the Restore option.
When you open a document (for example, an M-file), it also opens the tool (for example, the Editor) if the tool is not already open. Subsequent documents of the same type open in the tool and you can then arrange the documents within the tool, as follows:
Accept the default to have documents appear one on top of another, such that the one on top hides the one or ones beneath it.
After changing the arrangement from the default, you can restore
it by selecting Window > Maximize (or the
toolbar button).
To arrange documents so that two documents display
simultaneously, side-by-side, select Window > Left/Right Tile (or the
toolbar button).
When tools and documents are docked, you can save space by hiding toolbars and document bars:
To hide (or show) a toolbar, select Desktop > Toolbar name.
To see or move the document bar, select Desktop > Document Bar > Bar Position, and choose its location, for example, Top.
The following example shows two M-files, side-by-side, with the desktop shortcuts toolbar hidden.

The following example illustrates many of the options described in this list for creating and manipulating tiled documents.
To see more than two documents at once:
Click the Tile button.
In the grid that appears, move the pointer to select the number of tiles you want.
The following "Before" illustration has four tiles, but only three documents are open. (The empty tile is gray.)
To move a document to any empty tile, drag its title bar to the new location.
To close an empty tile:
Position the pointer over the handle
on the separator bar.
The handle becomes a Close box, as shown in the example.
Click the Close box.
The empty tile closes, and the neighboring document expands as shown in the following "After" illustration.
To hide one document behind another, click the Close box between two tiles containing documents.
One document becomes hidden.

This example illustrates a way to provide a large area for multiple documents, in this case, M-files maximized in the undocked Editor.

Some common actions for working with documents outside of the desktop are
Group all Editor documents — select Desktop > Dock All in Editor from any Editor document.
Move all Editor documents outside of the desktop — select Desktop > Undock Editor when the Editor is the active window.
Make a document occupy the full area in the Editor — click the Maximize button in the Editor toolbar, or select Window > Maximize.
Display the cell toolbar — select Desktop > Cell Toolbar. This menu item is available only when the current document is an M-file.
Access any document in the Editor using the document bar. To show the document bar on the left side of the Editor, select Desktop > Bar Position > Document Bar > Left from the Editor.
This example illustrates multiple figures in the desktop. By default, figures open outside the desktop. You can arrange and adjust the figures, as follows:
To move the figures into the desktop, click the Dock button in the menu bar of each figure.
To float (also called cascade) the figures, select Window > Float, or click the Float button
.
To get more screen area for the figures, hide the document bar as shown in this example — select Desktop > Document Bar > Bar Position > Hide.

You can use tools and documents outside of the desktop as illustrated in the example that follows.
To undock a tool and its documents:
Select Desktop > Undock Toolname.
Select Desktop > Undock Documentname from the tool.
If you undock all documents from a tool, an empty tool window remains.
To close all undocked documents and their tools at once, select Window > Close All Documents from an undocked document window.
Notice the following in this example:
One of the Editor documents, collatz.m, includes the name of the tool with it.
The other Editor document, lengthofline.m, does not include the name of the tool with it.
If you close the Editor, the lengthofline.m document remains open, but collatz.m closes.
Neither of the Variable Editor documents includes the name of the tool.
This is because the Variable Editor is undocked from the desktop, the variables are undocked from the Variable Editor, and the "empty" Variable Editor window is closed. The undocked documents in the tool remain open.

[1] UNIX is a registered trademark of The Open Group in the United States and other countries.
![]() | Managing Desktop Layouts | Running Frequently Used Statement Groups with MATLAB Shortcuts | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |