Development Environment    

Viewing Base and Function Workspaces Using the Stack

When you run M-files, MATLAB assigns each function its own workspace, called the function workspace, which is separate from the MATLAB base workspace. To access the base and function workspaces when debugging M-files, use the Stack field in the Workspace browser. The Stack field is only available in debug mode and otherwise is grayed out. The Stack field is also accessible from the Editor/Debugger. See Debugging M-Files for more information.

Creating Graphics from the Workspace Browser

From the Workspace browser, you can generate a graph of a variable. Right-click the variable you want to graph. From the context menu, select Graph Selection and then choose the type of graph you want to create. The graph appears in a figure window. For more information about creating graphs in MATLAB, see the MATLAB Graphics documentation.

Opening Variables and Objects for Viewing and Editing

In the Workspace browser, double-click a variable and it opens in the Array Editor, where you can view and edit the contents of the variable. See Viewing and Editing Workspace Variables with the Array Editor for more information about opening arrays.

Some toolboxes allow you to double-click an object in the Workspace browser to open a viewer or other tool appropriate for that object. For details, see the toolbox documentation for that object type.


  Clearing Workspace Variables Preferences for the Workspace Browser