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:
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
m
m = 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1
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
openvar('m')
MATLAB opens m
in the Array Editor.
![]() | Preferences for the Workspace Browser | Changing Values of Elements in the Array Editor | ![]() |