Development Environment    

Viewing and Editing Workspace Variables Using the Array Editor

Use the Array Editor to view and edit a visual representation of one or two-dimensional numeric arrays, strings, and cell arrays of strings. The Array Editor features are:

In addition, you can set preferences. See Preferences for the Array Editor.

Opening the Array Editor

You can open the Array Editor from the Workspace browser:

  1. In the Workspace browser, select the variable you want to open. Shift-click or Ctrl-click to select multiple variables to open.
  2. Click the open selection button on the toolbar, or right-click and select Open Selection from the context menu.

Alternatively, for one variable, you can double-click it to open it.

The Array Editor opens, displaying the values for the selected variable.

Repeat the steps to open additional variables in the Array Editor. Access each variable via its tab at the bottom of the window, or use the Window menu.

Function Alternative.   To see the contents of a variable in the workspace, just type the variable name at the Command Window prompt. For example, type

and MATLAB returns

To open a variable in the Array Editor, use openvar with the name of the variable you want to open as the argument. For example, type

MATLAB opens m in the Array Editor.


 Preferences for the Workspace Browser Changing Values of Elements in the Array Editor