Main Content

Workspace Browser

Open Workspace browser to manage workspace

Description

The Workspace browser enables you to view and interactively manage the contents of the workspace in MATLAB®. For each variable or object in the workspace, the Workspace browser also can display statistics, when relevant, such as the minimum, maximum, and mean.

You can edit the contents of scalar (1-by-1) variables directly in the Workspace browser. Right-click the variable and select Edit Value. To edit other variables, double-click the variable name in the Workspace browser to open it in the Variables editor.

Workspace browser

Open the Workspace Browser

To open the Workspace browser if it is not currently visible, do one of the following:

  • MATLAB Toolstrip: On the Home tab, in the Environment section, click Layout. Then, in the Show section, select Workspace.

  • MATLAB command prompt: Enter workspace.

In MATLAB Online™, the Workspace browser is called the Workspace panel. To show or hide the Workspace panel, click its icon in the sidebar. To open the Workspace panel if it is not currently in the left or right sidebar, go to the Home tab, and in the Environment section, click Layout. Then, under Layout Options, select Workspace.

Examples

expand all

Create a 3x3 matrix and then edit the values of the matrix in the Workspace browser.

Create a 3x3 matrix and store it in A.

 A = [1 2 3; 4 5 6; 7 8 9];

Open the Workspace browser to view A.

workspace

Workspace browser showing A before edit

Right-click the variable and select Edit Value. Replace the numbers 4, 5, and 6 with the numbers 10, 11, and 12, respectively.

Workspace browser showing A after edit

Programmatic Use

expand all

workspace displays the Workspace browser. If the Workspace browser is already open, MATLAB selects the tool.

Version History

Introduced before R2006a