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.

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™, you can minimize the Workspace browser by collapsing the panel in which it resides. For example, if the Workspace browser is in the left side panel, click the button at the bottom left corner of the panel to collapse the panel. To restore the panel, click the button. If the Workspace browser is in the left or right side panel and the panel contains multiple tools, you also can minimize it by clicking the button to the left of the Workspace browser title bar.

The workspace function is not supported in MATLAB Online.

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

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

Programmatic Use

expand all

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

The workspace function is not supported in MATLAB Online.

Introduced before R2006a