Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Other Desktop Features

Using Menus and Context Menus

Understanding Merged Menus

When you use a tool in the desktop, its menu appears at the top of the desktop. When you work in a different tool in the desktop, you still use the menu at the top of the desktop. However, the menu content changes to support that tool. When you undock a tool from the desktop, access its menu at the top of the undocked tool.

Context Menus

Many of the features in MATLAB desktop tools are available from context menus, also known as pop-up or right-click menus. To access a context menu, right-click a selection or an area. The context menu for the selection or tool appears, presenting the available actions. For example, following is the context menu for a selection in the Command History window.

Image of a line selected in the Command History and the resulting context menu (pop-up) menu, accessed via a right-click.

If a context menu does not appear, try right-clicking in a different part of the tool. When a context menu item is gray, the item does not apply to the current selection or area.

Using Toolbar Features

The toolbar in the desktop provides easy access to frequently used operations. Some other tools also provide toolbars. The following illustration shows some key features of the desktop toolbar.

Image of desktop toolbar, with brief descriptions for each toolbar button and field.

The following are the major toolbar features:

Image of grabbing the Cell Mode toolbar anchor and moving it so as to precede the Editor toolbar.

Viewing and Changing the Current Folder in the Desktop Toolbar

The current folder field in the desktop toolbar shows the current working folder in MATLAB. You can use this field to change the current folder. Click the down arrow in this field, for example, to select a folder that you previously used from the history.

Viewing Status in the Status Bar

Along the bottom of the desktop is the status bar. It provides status information, such as when MATLAB is busy executing statements or when the Profiler is on.

You can construct your own functions to provide status information. One method is the timer function. Use the Help browser search feature to find other specific terms describing the status you want.

Sizing, Arranging, and Sorting Columns in Desktop Tools

Some desktop tools present information in columns, such as the Current Folder browser. The following table describes how you can resize and reposition the columns, as well as sort the information in the columns.

To...Do This...
Change the column widthDrag the separator bar between two column headings.
View all the information in a column that is too narrow to show it allPosition the pointer over an item to view the full value for that item. It displays like a tooltip.
Rearrange the columnsDrag a column header to a different position.
Sort the information by a particular column

Click the column header. For example, in the Current Folder browser, click the Date Modified date to sort the items in date order.

In some columns, you also can reverse the sort order by clicking the column header again. A small gray arrow in the header indicates the current sort order. For example, a down arrow in the Date Modified column header indicates a descending sort order. The newest files are at the top of the list.

Image of Current Folder browser showing key actions to perform for sizing and sorting columns.

Selecting Multiple Items

In many desktop tools, you can select multiple items, and then select an action to perform on all the selected items. Select multiple items using the standard practices for your platform.

For example, if you run on a Microsoft Windows platform, do the following to select multiple items:

  1. Click the first item you want to select.

  2. Hold the Ctrl key, and then click the next item you want to select. Repeat this step until you have selected all the items you want. To select contiguous items, select the first item, hold the Shift key, and then select the last item.

Now you can perform an action on the selected items, such as delete.

To clear one of multiple selected items, Ctrl+click that item. To clear all selected items, click outside of the selection.

See also, Performing Desktop Actions Using the Keyboard

Cut, Copy, Paste, and Move

You can cut and copy a selection from a desktop tool to the clipboard, and then paste it from the clipboard into another tool or application. You can use the Edit menu, toolbar, context menus, or standard keyboard shortcuts. For example, you can copy a selection of statements from the Command History window and paste them into appropriate MATLAB desktop tools, such as the Editor.

Use Paste to move items copied to the clipboard from other applications. The Paste to Workspace item in the Edit menu opens the selection on the clipboard in the Import Wizard. You can use this wizard to copy data from another application, such as the Microsoft® Excel® application, into MATLAB. For details, see Using the Import Wizard in the MATLAB Data Import and Export documentation.

When editing in the Command Window and the Editor, you can move text to a new location by selecting the text and dragging it. To copy text, press Ctrl and drag the selected text to the new location.

To undo the most recent cut, copy, or paste command, select Undo from the Edit menu. Use Redo to reverse the Undo. For some tools, you can undo multiple times in succession.

See also the clipboard function.

Drag and Drop

You also can move or copy a selection from one tool to another by dragging the selection. For example, make a selection in the Command History window and drag it to the Command Window, which pastes it there. Edit the lines in the Command Window, if needed, and then press the Enter key to run the lines from the Command Window.

Another example is to open a file in the Editor by dragging the file name from the Current Folder browser to the Editor. If you drag editable text (for example, text in the Editor), the text is cut rather than copied. Use Ctrl and drag to copy rather than cut editable text.

On Windows platforms, you can drag items from external applications into MATLAB. For example, dragging text from a document created using the Microsoft Word application into the Editor cuts and pastes it into the open file. Dragging an M-file from Windows Explorer tool to the Command Window runs the file. Similarly, you can drag selections from desktop tools to other applications. For example, you can drag text from the Editor to the Word application.

Macintosh Platform — Differences

GUI Conventions in the Documentation and Macintosh Platforms

MATLAB on the Apple Macintosh platform sometimes uses conventions that are standard for the Macintosh platform, but might be different from what the MATLAB documentation states. The documentation typically presents conventions for Microsoft Windows platforms. The intended action for the Macintosh platform is typically obvious. For example, the documentation might instruct you to do the following, which is the convention on Windows platforms:

  1. Select File > Save.

  2. SelectYes, No, or Cancel from the Save dialog box.

However, on Macintosh platforms, the Save dialog box presents the options Don't Save and Save.

Pointer Device Instructions and Macintosh Platforms

The standard mouse for Macintosh platforms is a single-button device. Other platforms use a mouse with more than one button. MATLAB takes advantage of these buttons. The documentation does not usually present the equivalent instructions for the Macintosh platform. When the documentation instruction is right-click, use Ctrl+click on the Macintosh platform. When the documentation instruction is middle-click, use Command+click on the Macintosh platform.

Using File Browser GUIs on Macintosh Platforms to Navigate Within the MATLAB Root Folder

On Macintosh platforms, you cannot use a file browser GUI to navigate directly to a file or folder within the MATLAB root folder. (The MATLAB root folder also called matlabroot, which is the folder where MATLAB is installed). When you use the Macintosh Finder or a file browser GUI in MATLAB and select Applications/R2009b_MATLAB, no contents appear. On Macintosh platforms, the MATLAB root folder is R2009b_MATLAB.app, and the Macintosh operating system does not display the contents of applications (items with the .app extension).

Here are some ways to view or open the contents of the MATLAB root folder via a file browser GUI:

Printing and Page Setup Options for Desktop Tools

You can print from all desktop tools, except the Current Folder browser, but there are some differences in usage.

To print, select File > Print from the tool. A Print dialog box opens. The Properties button in the Print dialog box is enabled for the Web browser, the Help browser, and the Profiler. However, it is not enabled for the other desktop tools.

To specify standard page setup options for your platform when you print from the Command History, Workspace browser, and Variable Editor, select File > Page Setup. A standard page setup dialog box for your platform opens.

MATLAB provides special page setup options for printing from the Command Window and Editor. The setup options are essentially the same for both tools, with minor variations. This section covers their use:

Specifying Page Setup Options

To specify page setup options, perform these steps:

  1. In the tool you want to print from, for example, the Command Window, select File > Page Setup.

    The Page Setup dialog box opens for that tool.

    Image of Page Setup dialog box for MATLAB Command Window.

  2. Click the Layout, Header, or Fonts tab in the dialog box and set those options for that tool, as detailed in subsequent sections.

  3. Click OK.

  4. After specifying the options, select File > Print in the tool you want to print from, for example, the Command Window.

    The contents from the tool print, using the options you specified in Page Setup.

Layout Options for Page Setup

You can specify the following layout options. A preview area shows you the effects of your selections.

Header Options for Page Setup

If you want to print a header, select the Layout tab and then select Print header. Next, select the Header tab and specify how the elements of the header are to appear. A preview area shows you the effects of your selections:

Fonts Options for Page Setup

Specify the font to use for the printed contents:

  1. From Choose font, select the element, either Body or Header, where Body text is everything except the Header.

  2. Select the font to use for that element. For example, select Use Command Window font for Body text if you want the printed text to be the same as the Command Window font. This is the font specified in File > Preferences > Fonts > Custom for the Command Window.

  3. Repeat for the other element. If you did not select Print header on the Layout pane, you do not need to specify the Header font. As an example, for Header text, select Use custom font and then specify the font characteristics—type, style, and size. After you specify a custom font, the Sample area shows how the font will look.

Accessing The MathWorks on the Web

You can access popular pages on the MathWorks Web site from the MATLAB desktop.

To download trial versions of products that you do not have, select Help > Get Product Trials.

For access to other popular Web site pages, select one of the following items from the Help > Web Resources menu. The selected Web page opens in your system Web browser:

Managing Your Licenses

You can use the MATLAB licensing features to perform license management activities, such as activating licenses, deactivating licenses, or updating licenses. You also can visit the License Center at the MathWorks Web site to perform other license-related activities.

To access the licensing feature:

  1. Select Help > Licensing.

  2. Select the activity you want to perform from the Licensing menu. The following table describes the options. Depending on your license type, the Licensing menu on your system might not include all options.

OptionDescription
Activate SoftwareStarts the activation application, which walks you through the activation process. Answer the questions on each dialog box, select the license you want to activate, and click Activate.
Deactivate Software

Displays a list of all your MathWorks licenses on this computer, with their current status. When you select a license and click Deactivate Selected License, MATLAB deactivates all releases on this computer associated with the license, and updates the licensing information at the MathWorks Web site. You will not be able to use MathWorks software with that license on this computer.

If you are not connected to the Internet, MATLAB deactivates the licences on your computer but cannot update the corresponding license information stored at the MathWorks Web site. In this scenario, MATLAB returns a deactivation string. To complete deactivation, save a copy of this string, go to a computer with an Internet connection, and visit the License Center at the MathWorks Web site. There you can login to your MathWorks Account and enter the deactivation string.

Update Current LicensesDisplays a list of all your MathWorks licenses on this computer, with their current status. When you select a license and click Update Selected License, MATLAB contacts The MathWorks to retrieve the most current version of the License File for the license. The update process overwrites the current License File on your system. You will need to restart MATLAB.
Manage LicensesStarts a Web browser, opening the My Licenses page associated with your MathWorks Account. You can use this page, called the License Center, to perform many licensing activities.

Check for Updates

To determine if more recent versions of your MathWorks products are available, and to view latest version numbers for all MathWorks products, use the Check for Updates feature.

To access the Check for Updates feature, you must have an active Internet connection. Then, follow these steps:

  1. Select Help > Check for Updates. The Check for Updates dialog box displays.

  2. From the Select View list, choose to view the latest version numbers for all MathWorks products installed on your system, or all MathWorks products. The latest versions are displayed.

  3. Click any column heading to sort or reverse the sort order by that column.

  4. Use the What's New column to access the release notes for a product. Release notes document new features and changes, bug reports, and compatibility considerations.

  5. To upgrade to the most recent version, click Download Products at MathWorks.com, which links to the Downloads area of the MathWorks Web site. If you do not want to upgrade at this time, click Close.

  


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