Desktop Tools and Development Environment Previous page   Next Page

Opening the Workspace Browser

To open the Workspace browser, select Workspace from the Desktop menu in the MATLAB desktop, or type workspace at the Command Window prompt.

The Workspace browser opens.

Image of Workspace browser.

Viewing and Editing Values in the Current Workspace

The Workspace browser shows the name of each variable, its value, its array size, its size in bytes, and the class. The icon for each variable denotes its class.

To resize the columns of information, drag the column header borders. To show or hide any of the columns, or to specify the sort order, select View -> Choose Columns.

You can select the column on which to sort as well as reverse the sort order of any column. Click a column heading to sort on that column. Click the column heading again to reverse the sort order in that column. For example, to sort on Name, click the column heading once. To change from ascending to descending, click the heading again. You cannot sort by the Value column in the Workspace browser.

You can edit values directly in the Workspace browser Value column. To edit a value, select the row to change in the Value column and type in the new value.

Function Alternative

Use who to list the current workspace variables. Use whos to list the variables and information about their size and class. For example:

    Your variables are:
    A M S V

    Name      Size       Bytes  Class

  A         1x4          32  double array
  M         3x1          202  cell array
  S         1x2          598  struct array
  V         1x35         70  char array

Grand total is 76 elements using 902 bytes

Use exist to see if the specified variable is in the workspace.

Previous page  MATLAB Workspace Saving the Current Workspace Next page

© 1994-2005 The MathWorks, Inc.