Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Opening and Arranging Desktop Documents

Opening Documents

Use the document bar to go to a document that is open, but not in view. The names of all open documents appear on the document bar. Click the document name to open the document. If the document bar is not open, select Desktop > Document Bar > Bar Position and select the position for it, for example, Right. For more information, see Navigating Among Open Documents Using the Document Bar.

Entries for undocked documents appear on the Windows task bar, or the equivalent for your platform. Click the task bar entry for a document to make that document active.

When you open MATLAB documents, they open in the associated tool and appear in the position they occupied when last used. Figures open undocked, regardless of the last position occupied. If the tool is not already open, it opens when you open the document.

How you open a document depends on the document type, as described in the following table.

Document Type and Tool

How to Open Document

Where Document Appears by Default

Other Techniques to Open Document

M-file (or other text file) in the Editor

Click the Open file button  Image of Open file button. on the desktop toolbar and select the file.

In the last location of the Editor. The default location for the Editor is outside the desktop.

Opening Existing Files in the Editor

Variable in the Variable Editor

Double-click a variable in the Workspace browser.

In the last location of the Variable Editor. The default location of the Variable Editor is docked on the desktop.

Opening the Variable Editor

HTML or similar page in the Web browser

Double-click the file name in the Current Folder browser.

In the last location of the Web browser, replacing the existing Web browser document.

Using Web Browsers from MATLAB

Figure

Use the plot function.

In a figure window, outside the desktop.

Any other function or tool that creates a figure window.

Example of Working with Documents on the Desktop

Some common actions for working with documents on the desktop are:

See also Examples of Desktop Arrangements.

Image of MATLAB desktop showing Variable Editor and Editor tabbed together. Editor shows two open documents.

Navigating Among Open Documents Using the Document Bar

When you have more than one document open in a tool, each document appears either maximized (the default), tiled, or floating (cascading). Tiled and floating arrangements make multiple documents visible simultaneously. The document bar shows the names for all open documents docked together in a tool.

Making a Document Active

To make a document that is open and in view active, click it.

To make an open document that is not in view active, do one of the following:

See also Performing Desktop Actions Using the Keyboard.

Adjusting the Document Bar

You can show, hide, move, alphabetize, and adjust the size of the tabs in the document bar as described in the following table.

To Accomplish This:Do This:

Show the document bar.

Select Desktop > Document Bar > Bar Position, and then select a location, for example, Right.

Hide the document bar.

Select Document Bar > Bar Position > Hide from the Window menu or the document bar context menu.

Move the document bar.

Do one of the following:

  • Drag it to another location

  • Select a new location from the Desktop > Document Bar > Bar Position submenu.

Alphabetize the names of the documents on the document bar.

Alphabetizing is useful if you have many documents open at once.

Do one of the following:

  • Right-click on the document bar and select Alphabetize.

  • Select Desktop > Document Bar > Alphabetize.

Reorder document names on the document bar.

Do one of the following:

  • Drag a document name to a different position in the document bar.

  • Select Move documentname On Bar and select a direction. For example, select to Beginning from either the Desktop > Document Bar menu or from the document bar context menu.

Widen or narrow document names on the document bar.

If document names are long, or if you have many documents open, the entire document name does not display. Instead, you see the first few characters followed by ellipsis (...).

Do one of the following:

  • When the document bar is on the top or bottom drag the separator bar between two names on the bar. (Do this, for example, to see an entire document name.)

  • When the document bar is on the left or right, change the width of the bar by dragging its left or right edge.

Positioning Documents

You can position open documents so that one document or multiple documents are in view from within a tool. Select the arrangement from the Window menu or use the Arrange Documents drop-down menu  Image of Arrange Documents drop-down menu., as described in the sections that follow. When you tile documents, they are all visible within the tool, arranged in a grid pattern.

Viewing One Document (Default)

To have one document in view that occupies the entire tool (the default), do one of the following:

The illustration in Example of Working with Documents on the Desktop shows this arrangement.

Viewing All Open Documents, Layered on Top of One Another

You can use the Float or Cascade options to layer open documents one on top of another. To do this, use one of the following methods:

Viewing Documents, Side-By-Side

You can use the Tile option to view two documents side-by-side. To do this, use one of the following methods:

See also the Editor Split Screen Display that enables you to view two different parts of the same file simultaneously.

Viewing Open Documents, One Above the Other

You can use the Top/Bottom Tile option to view two documents stacked one above the other by using one of the following methods:

See also the Editor Split Screen Display that enables you to view two different parts of the same file simultaneously.

Viewing Open Documents, Tiled Within the Tool

To have all open documents in view, tiled within the tool, follow these steps:

  1. Select the tiling option using one of these methods:

    • Select Window > Tile.

      On the Apple Macintosh platform, this option might be unavailable, so use the drop-down menu instead.

    • In the Arrange Documents drop-down menu, choose the Tile option  Image of Tile option..

    A four-by-four grid displays.

  2. Move the pointer across the grid to define the number and position of the tiles, as shown in the following illustration.

    You can select more or fewer tiles than there are open documents. In the example, there are three open documents, but you must select four tiles to make a square grid shape. The tiles that will contain documents appear blue, whereas the tiles that will be empty appear gray.

This example shows how to select an arrangement so that all three documents will be in view. The resulting arrangement has two documents above, one below, and one empty tile.

Image of Window menu showing Tile arrangement options.

The following arrangement shows three documents tiled in the Editor. The Editor is undocked from the desktop.

Image of three tiled documents.

To close an empty tile, move the pointer over the handle  Image of handle—located in the center of the separator bar. on the separator bar, and then click the Close box that appears. If you click the handle between two open documents, both documents stay open, but one moves on top of the other.

Image showing handle and close box for closing a tile.

Viewing a Subset of Open Documents, Tiled Within the Tool

To view only a subset of all your open documents displayed in tile format, follow these steps:

  1. Select Window > Tile ....

    The Tile dialog box opens.

  2. Indicate the documents you want to view and the grid pattern to use for the arrangement of their display.

    The following illustrations show how to specify the arrangement for three variables in three rows in the Variable Editor, and the resulting configuration.

Moving and Resizing Documents

You can move and resize documents to organize them as you want, as described in the following table.

To Accomplish This:Do This:
Minimize all open documents in a toolMake that tool active, and then select Window > Minimize Toolname Documents
Float documentsSelect Windows > Float.
Minimize (hide) a floating documentClick the minimize button  Image of minimize button. in the document title bar.
Access a minimized documentSelect its name from the document bar or the Window menu.
Move or resize a maximized documentMove or resize the tool that contains it.
Make a document larger when it is next to an empty tileHover over the handle on the separator bar, and then click the Close box that appears.
Resize tiled documentsDrag the separator bar that is between the documents.
Move tiled documentsDrag the title bar of the document to another tile. If you drag it to a tile that already contains a document, the document you are dragging covers up the other document.

Closing Documents

There are many ways to close a document. Use any of the following methods:

For example, in the undocked Editor, select Window > Close Documents to close all documents in the Editor. The Editor remains open with no documents in it, and any undocked Editor documents remain open.

Image of document in tool, highlighting the close box for the tool (in the tool's title bar), and the close box for the document (in the document's title bar).

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 Close box for the document.

Moving Documents Outside of the Desktop (Undocking)

You can move a tool outside of the MATLAB desktop (called undocking) to make it larger or easier to work with. For example, you can move the Help browser outside of the desktop when referring to the online documentation.

To move a tool outside the desktop, do one of the following:

The tool displays outside the MATLAB desktop and an entry for it appears in the Windows task bar. Tools within the desktop automatically resize accordingly.

Docking Documents and Tools

To dock documents and their associated tool, click the Dock button  Image of Dock button. on the menu bar for the tool.

If you dock a tool that includes documents, the tool and the documents within the tool move onto the desktop. For example, when you dock the Editor and it has open files, both the Editor and the documents move onto the desktop.

When you dock a document, it moves to the position in the tool that it occupied before you undocked the document.

Grouping Documents in a Tool Outside the Desktop

To group all the documents for a tool outside of the desktop, undock the tool from the desktop, not just the individual documents.

If you have already undocked all the documents and closed the empty tool that had contained them, follow these steps:

  1. Select Desktop > Dock All in Editor, for example.

    This selection moves all the documents into the tool in the desktop.

  2. Undock the tool.

  


Recommended Products

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