Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

Opening and Arranging Desktop Tools

See also Examples of Desktop Arrangements.

Opening Desktop Tools

To open a tool, select it from the Desktop menu. A check mark in front of the tool name on the menu indicates that the tool is open. The tool opens in the location it occupied the last time you used it. The dimensions of other open tools adjust to accommodate the newly opened tool. If you close and then reopen multiple tools sequentially, the location and size of the tools when you reopen them can be different from when you last closed them.

Tools and the documents associated with them can be part of the desktop. You can open a document and its associated tool at the same time, as follows:

You also can open most desktop tools by:

The following example shows how the MATLAB desktop can look with the Command Window, Command History window, Help browser, and the files collatz.m and lengthofline.m open in the Editor. Because the Command Window is the active window, its title bar is dark blue.

Image of desktop configuration described.

Navigating Among Desktop Tools and Documents

Navigating Among Desktop Tools and Documents

You can navigate among desktop tools and documents by:

Making a Tool or Document the Active Window

To make a tool or document the active window, do one of the following:

Closing Desktop Tools

To close a desktop tool, do one of the following:

When you close a tool, other tools in the desktop adjust their sizes accordingly.

For tools that contain documents, all documents in that tool close, as well. For the Editor, a dialog box appears asking you to save any documents that have unsaved changes. If you do not want to see that dialog box or save any unsaved changes, hold Ctrl and click the Close box.

Resizing Desktop Tools

To resize tools on the MATLAB desktop, you can use the mouse or the keyboard, as described in the following sections:

Resizing Desktop Tools Using the Mouse

To expand or reduce the size of adjacent tool windows, use the pointer to drag the bar that appears between them. This bar is the separator bar. When you move the pointer onto the separator bar, the pointer assumes a different shape, as follows:

Resizing Desktop Tools Using the Keyboard

You can use menu item mnemonics to resize desktop tools using the keyboard.

For example, suppose the Command Window is open on the desktop along with other tools. To make the Command Window the active tool:

  1. Click in the Command Window.

  2. Press Alt+D, Z. This action is the mnemonic equivalent of selecting Desktop > Resize Command Window.

    The pointer shape becomes an arrow.

  3. Use the keyboard arrow keys to change the size of the Command Window.

  4. Press Enter to accept the new size, or press Esc to return the Command Window to its original size.

Moving Tools Within the Desktop

To move the location of tools on the MATLAB desktop, use the mouse or the keyboard, as described in the following sections:

Moving Tools Using the Mouse

To move a tool to another location on the MATLAB desktop using the mouse, follow these steps:

  1. Drag the title bar of the tool to where you want the tool to be.

    As you drag the tool, an outline of it appears. The status bar indicates where the tool moves if you release the mouse. For instance, it can display:

    • Release the mouse to dock the Editor on the top.

    • Release the mouse to tab-dock the Current Folder.

    • Release the mouse to leave the Editor in the current location.

  2. When the outlined position is where you want the tool to be, release the mouse button.

    The tool stays at the new location.

The following illustration shows how it looks as you drag the Command History tool above the Command Window. When you begin dragging the Command History tool, the outline appears around the tool. When you drag it across the boundary separating the two tools, the outline indicates the top-bottom arrangement. If you release the mouse button, you change the arrangement from side-by-side to top-bottom.

Image of dragging Command History to a new position.

Other tools on the desktop automatically resize to accommodate the new configuration. The following example shows how the desktop looks after you move the Command History tool above the Command Window.

Image of Command History above the Command Window.

Moving Tools Using the Keyboard

To move desktop tools using the keyboard, follow the menu item mnemonics. For example, suppose the Command Window and other tools are currently open on the desktop. To move the Command Window to a new location, follow these steps:

  1. Make the Command Window the active tool by pressing Ctrl+0.

  2. Press Alt+D, V, which is the mnemonic equivalent for selecting Desktop > Move Command Window.

    The pointer shape becomes an arrow.

  3. Use the arrow keys to move the outline of the Command Window to a new location.

  4. Press Enter to keep the tool at the new location, or press Esc to return the Command Window to its original position.

Undocking Tools to Move Them Outside the Desktop

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

To move a tool outside the desktop:

  1. Select the tool to make it active.

  2. Perform one of the following:

    • Click the Undock button  Image of Undock button.  in the title bar of the tool you want to move outside the desktop.

    • Select Undock for that tool from the Desktop menu; the tool must be the currently active one.

    • Drag the title bar of the tool outside the desktop. As you drag, an outline of the tool appears. Release the mouse.

The tool displays 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.

Moving Undocked Tools Back onto the Desktop

To move a tool that is outside the MATLAB desktop back onto the desktop, do one of the following:

The tool moves onto the desktop and other tools within the desktop automatically resize to accommodate the new tool.

Grouping Desktop Tools Together

You can group tools so that they occupy the same location on the MATLAB desktop. Basically, you are stacking one tool on top of another. Then, you can access the individual tools using the tool name on the title bar:

To group tools:

  1. Drag the title bar of one tool on the desktop on top of another tool on the desktop.

    An outline of the tool you are dragging overlies the target tool.

    Image of dragging Command History on top of Command Window.

  2. Release the mouse.

    Both tools occupy the same space. Labeled tabs appear at the top of that space.

    Image of Command Window and Command History grouped together.

To view a grouped tool, click the title bar for the tool. The selected tool moves to the foreground and becomes the currently active window.

When you click the Close box  Image of Close box. for a tool grouped with other tools, that tool closes. You cannot close all the grouped tools at once. Instead, close each tool individually.

Right-click the title bar for a tool and use the context menu to close, undock, maximize, or minimize the tool.

Maximizing Available Space on the Desktop

To hide the title bars for desktop tools so they use less space, select Desktop > Titles. This action clears the check mark next to the Titles menu item. Identify a desktop tool with a hidden title by hovering over the area where the title bar used to be. A ToolTip displays the name of the tool.

Maximizing Tools Within the Desktop

MATLAB software provides multiple ways to maximize tools on the desktop. It also has multiple ways of restoring the desktop to the layout in place before you resized it. For example:

Minimizing Tools Within the Desktop

You can minimize any tool on the desktop, which creates a button representing the tool along an edge of the desktop. For example, suppose you minimize the Command Window. The desktop looks like the following, although the layout of the desktop and the location of the button can be different for your desktop.

MATLAB software provides multiple ways to minimize tools in the desktop, restore the previous desktop layout, and manipulate the location of the tool button. For example:

  


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