Using Simulink Previous page   Next Page

Changing the Embedded MATLAB Editor

Use the tools described in the following topics to change the appearance of the Embedded MATLAB Editor to add convenience and utility to its use.

Displaying Embedded MATLAB Function Windows

By default, if you have more than one Embedded MATLAB function loaded in the Embedded MATLAB Editor, only the most recently loaded is displayed. Editing windows for previously loaded functions are accessed individually with tabs in the document bar. You can display the editing windows for all loaded functions simultaneously with one of the following selections from the Window menu:

Tool Button
Description
Tile
Tile all loaded Embedded MATLAB windows into an adjustable matrix of windows. When you select the option, an array of squares representing the tiled windows is available as a submenu. Select an appropriate array of windows.
Left/Right Split
Display the selected window and the next most recently loaded Embedded MATLAB function at full height, side by side.
Top/Bottom Split
Display the selected window and the next most recently loaded Embedded MATLAB function at full width, top to bottom.
Float
Display the loaded Embedded MATLAB functions in separate cascading and overlapping windows of the same size.
Maximize
Display the Embedded MATLAB function in current focus at the full width and height of the editor. This is the default setting.
Undock Embedded MATLAB

Create a separate editor for the function in current focus. To redock the function back into the Embedded MATLAB Editor, from the Desktop menu of the undocked window, select Dock <function_name>.

Moving the Document Bar

When you edit an Embedded MATLAB function, it is displayed as a window in the Embedded MATLAB Editor. Because you can open more than one Embedded MATLAB function in the Embedded MATLAB Editor, a tab is added for the window in the document bar. Each tab contains the name of an Embedded MATLAB Function block loaded for editing. By default, the document bar appears at the bottom of the Embedded MATLAB Editor. If you want to edit an Embedded MATLAB function not in focus, click its tab.

You can change the location of the document bar to appear at the top of, to the left of, or to the right of the Embedded MATLAB function window, or you can make it disappear altogether, as follows:

  1. From the Desktop menu, select Document Bar.
  1. In the resulting submenu, a dot appears in front of the current selection. The default selection is Bottom.

  1. From the resulting submenu, select Top, Bottom, Right, Left, or Hide.

Eliminating the Toolbar

By default, the Embedded MATLAB Editor has a toolbar with shortcuts to tools that you can access from the menu. To eliminate the toolbar,

  1. Select the Desktop menu.
  1. The Toolbar option under Desktop is checked, to indicate the appearance of the toolbar.

  1. Under Desktop, select Toolbar.
  1. The toolbar disappears.

  1. Select the Desktop menu again.
  1. The Toolbar option under Desktop is no longer checked. Select it to make the toolbar visible again.

Setting Preferences

You can choose preferences for the Embedded MATLAB Editor, such as font size, tab size, and so on, as follows:

  1. From the File menu, select Preferences.
  1. The MATLAB Preferences dialog box appears.

  1. Change preferences in pages accessed only through the following nodes:


Previous page  The Embedded MATLAB Function Editor Editing the Embedded MATLAB Function Next page

© 1994-2005 The MathWorks, Inc.