Development Environment |
To open the Workspace browser, select Workspace from the View menu in the MATLAB desktop, or type workspace
at the Command Window prompt.
Viewing the Current Workspace
The Workspace browser shows the name of each variable, 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 Workspace View Options from the View menu.
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 Size, click the column heading once. To change from ascending to descending, click the heading again.
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:
who Your variables are: A M S v whos Name Size Bytes Class A 4x4 128 double array M 8x1 2368 cell array S 1x1 398 struct array v 5x9 90 char array Grand total is 286 elements using 2984 bytes
Use exist
to see if the specified variable is in the workspace.
MATLAB Workspace | Saving the Current Workspace |