| MATLAB® | ![]() |
| On this page… |
|---|
Modifying the Desktop Configuration |
See also Examples of Desktop Arrangements.
You can modify the desktop configuration to best meet your needs. Because the desktop uses many standard graphical user interface (GUI) conventions, it is easy to learn about arranging the desktop just by using it.
The desktop manages tools differently from documents. The Command History and Editor are examples of tools, and an M-file is an example of a document, which appears in the Editor tool.
This table summarizes actions for arranging desktop tools. For further information, click the "see more details online" links, which you can access in the HTML documentation (in the Help browser or on the Web site).
Tool Action | Steps to Perform |
|---|---|
Opening desktop tools | To maximize your work area, keep open only those tools you use. To open a tool, select the tool name from the Desktop menu. Opened tools have a check mark before them in the menu. The tool appears in the location it occupied the last time it was open. The sizes of other tools adjust to accommodate the newly opened tool. See more details online. |
Navigating among desktop tools | The Window menu displays all open desktop tools and documents, as well as opened tools for other MathWorks™ products. Select an entry in the Window menu to go directly to that tool or document. Another way to access an undocked desktop tool is by selecting its entry in the Microsoft® Windows® task bar, or the equivalent for your platform. See also Keyboard Shortcuts and more details online. |
Closing desktop tools | To close a desktop tool, select the item in the Desktop menu, which clears the check mark in the menu and closes the tool. Or click the Close box (X) in the title bar for the tool, or select File > Close for the tool. See more details online. |
Resizing tools | To resize tools in the MATLAB® desktop, drag the separator bar, which is the bar between tools. You can hide the title bars for tools in the desktop so the tools use less space—select Desktop > Titles, and then hover over a title bar to see a ToolTip containing the name of the tool. See more details online. |
Moving tools within the desktop | To move a tool in the MATLAB desktop, drag the title bar of the tool toward where you want the tool to be located. As you drag the tool, an outline of it appears. When the outline nears a position where you can keep it, the outline snaps to that location. Release the mouse button. The tool stays at the new location. Other tools in the desktop resize to accommodate the new configuration. The inside edges of the desktop container and tools all act as if they are "sticky," so you can position a tool along any inside edge. See more details online. |
Moving tools out of the desktop (undocking) | Move a tool out of the desktop to make it larger or easier
to work with. To move a tool outside the MATLAB desktop (called undocking), select the tool to make it active, and then
select Desktop > Undock > Toolname. The tool appears outside the MATLAB desktop and an entry for
it appears in the Windows task bar or the equivalent for your
platform. Tools within the desktop resize accordingly. Another way
to undock is by using the Undock button
|
Moving tools into the desktop (docking) | To move
a tool that is outside the MATLAB desktop into the desktop, click
the Dock button
|
Grouping tools together | You can group tools so that they overlay each other in the MATLAB desktop. To group tools together, drag the title bar of one tool in the desktop on top of the title bar of another tool in the desktop. To make a tool active, click its name in the title bar. See more details online. |
Maximizing tools in the desktop | To resize the active tool
so it occupies the entire MATLAB desktop, double-click the tool's
title bar; to return to the layout prior to maximizing, double-click
the title bar of the maximized tool. Alternatively, use the menus:
select Desktop > Maximize Toolname. To return to the layout
prior to maximizing, select Desktop > Restore Toolname. You can
also use the Maximize button
|
Minimizing tools in the desktop | You can minimize
any tool in the desktop, which creates a button along an edge of the
desktop that represents the tool. Select Desktop > Minimize Toolname. You can also use the Minimize button
|
Open a document, such as an M-file or a variable, and it opens in its tool, for example, the Editor or Variable Editor. The following example illustration shows a desktop arrangement that includes Editor and Variable Editor documents. See instructions in Summary of Actions for Arranging Documents.
Some common actions for working with documents in the desktop are
Use the document bar to go to open documents.
Use the Window menu or equivalent toolbar buttons to position documents.
Close or undock a tool, including all documents in the tool.
Undock a document from its tool.
Use the document Close box with the Ctrl key to close the document without saving it and without displaying the unsaved document dialog box.
See also Examples of Desktop Arrangements.

This table summarizes actions for arranging documents in their tool. For further information, click the click the "see more details online" links, which you can access in the HTML documentation (in the Help browser or on the Web site).
Document Action | Overview |
|---|---|
Opening documents | When you open a document for use with MATLAB, it opens in the associated tool. If the tool is not already open, it opens when you open the document and appears in the position it occupied when last used. Figures open undocked, regardless of the last position occupied. How to open a document depends on the document type:
There are many additional ways to open documents. See more details online. |
Navigating among documents — the document bar | When more than one document is open within a tool, each document is either maximized (the default), or arranged so that multiple documents are visible at once. Click a document that is in view to make it the active document. See also Keyboard Shortcuts. Use the document bar to go to a document that is open but not in view. The names of all open documents appear in the document bar. Select a document name in the document bar to make that document active. To show the document bar if it is not open, select Desktop > Document Bar > Bar Position and select the position for it, for example, Right. See more details online. Entries for undocked documents appear in the Windows task bar, or the equivalent for your platform. Click the task bar entry for a document to make that document active. |
Positioning, moving, and resizing documents | To position open documents within their tool, select
an arrangement from the Window menu when
the tool is active, or by using the equivalent toolbar button for Maximize, Float, Left/Right Tile, Top/Bottom Tile, and Tile. You can also define a specific
grid arrangement using Window > Tile.... On the Macintosh platform,
the tile option might not be available in the Window menu so use the Tile button
With the tile
arrangements, you refine the document position by moving the pointer
over the handle (
To move a document in a tiled arrangement, drag the title bar of a document to another tile. To resize tiled documents, drag the separator bar between the documents. See also the Editor's Split Screen Display, which allows you to view two different parts of the same file simultaneously. To move or resize maximized documents, you move or resize their tool. |
Closing documents | To close a document, click the Close box in the document's title bar. After closing all the documents in a tool, the tool remains open with no documents in it. If you select the Close box for the tool, all documents in that tool close. In the Editor, when you close a file that has unsaved changes, a prompt appears asking if you want to save the document. To close a file without saving changes and without seeing the save prompt, use Ctrl when you click the document's Close box. See more details online. |
Moving documents and tools out of the desktop (undocking) | To undock all documents in a tool from the desktop, click
the Undock button
To undock a document from
its tool, click the Undock button
Undocked documents have entries in the Windows task bar (or the equivalent for your platform). |
Docking documents and tools | When you dock a document, it moves to the position in
the tool that it occupied before you undocked the document. To dock
a document, click the Dock button
|
Grouping documents in a tool outside the desktop | To group all of the documents for a tool together outside of the desktop, undock the tool from the desktop, not just the documents. If you have already undocked all of the documents and closed the empty tool that had contained them, select Desktop > Dock All in Editor, for example. This moves all the documents into the tool in the desktop. Then undock the tool. |
When you end a session, MATLAB saves the desktop layout. The next time you start MATLAB, the desktop is restored to the way you last had it.
To use a predefined layout, select Desktop > Desktop Layout, and choose a configuration. See more details in the online documentation.
To save your own layouts for later reuse, select Desktop > Save Layout and provide a name. To reuse a saved layout, select the name from Desktop > Desktop Layout. See more details in the online documentation.
![]() | Overview of the Desktop | Examples of Desktop Arrangements | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |