| 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.
This example shows two ways you can increase the size of a tool.
One way is to move a tool outside of the desktop to increase its size.
Here, the Help browser was moved outside of the desktop and made larger.
To move a tool outside of the desktop, click the Undock button
in the tool's title bar when the tool
is in the desktop.
Another way to increase the size of a tool is by grouping tools together inside the desktop, and then accessing a tool via the tool's name in the title bar. Here the Command Window, Command History, Workspace browser, and Current Directory browser are grouped together. To achieve this, drag the title bar of one tool on top of the title bar of the tool(s) you want to group it with.

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 in the default desktop layout is temporarily
maximized by clicking the Maximize button
in the tool's title bar.

In this example, the maximized Command Window is being returned
to its size and position in the default desktop layout 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 The Open Group UNIX® platforms. In this example, the Command History in the default layout is being minimized to the left edge of the desktop.

In this illustration, the Command History has been minimized and appears as a button along the left edge.

This illustration shows the minimized Command History being temporarily opened, as a result of clicking or hovering over the button.

After using the Command History and clicking the button, or moving on to another tool, the Command History again becomes minimized as a button along the left edge.
This illustration shows the Command History being returned to
the position and size it occupied in the desktop prior to being minimized
by clicking the Restore button
.

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 opened.
Subsequent documents of the same type open in the tool and you can
then arrange the documents within the tool. You can move a document
on top of another document, so that the one on top hides the one(s)
beneath it, or you can show multiple documents at once. This example
shows two M-files side-by-side, as a result of selecting Window > Left/Right Tile (or the
toolbar button).
When tools and documents are docked, you might want to save space by hiding toolbars and document bars. In this illustration, the desktop shortcuts toolbar is hidden. Select Desktop > Toolbar name to hide (or show) a toolbar. To see or move the document bar, select Desktop > Document Bar > Bar Position, and choose its location, for example, Top.

To see more than two documents at once, select the Tile button
and move the pointer across the gird that appears 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.) You can move a document to any empty tile by dragging its
title bar to the new location. To close an empty tile, position the
pointer over the handle
on the separator bar. It becomes a
Close box, as shown here, which you click to close the empty tile.
After clicking the Close box, the empty tile closes and the neighboring
document expands as shown in the following "After" illustration.
Similarly, click the Close box between two tiles containing documents,
and one document becomes hidden. Note that preferences to show line
numbers and M-Lint indicators have been cleared to provide more horizontal
space.

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 together — 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. Click the Dock button in each figure's menu bar to move the figures into the desktop.
You can float (also called cascade) the figures by selecting Window > Float, or clicking the Float button
. To get even 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. One way to achieve this is to first undock the tool from the desktop by selecting Desktop > Undock Toolname. Then undock documents from the undocked tool by selecting Desktop > Undock Documentname from the tool. If you undock all documents from a tool, an "empty" tool window remains.
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. Contrast this with the Variable Editor documents, where neither document window includes the name of the tool. This is because the Variable Editor was undocked from the desktop, the variables were undocked from the Variable Editor, and the "empty" Variable Editor window was closed. The tool's undocked documents remain open. If you closed the Editor, the lengthofline.m document would remain open. To close all undocked documents and their tools at once, select Window > Close All Documents from an undocked document window.

![]() | Arranging the Desktop | MATLAB® Shortcuts — Easily Run a Group of Statements | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |