whos
List variables in workspace, with sizes and types
Syntax
Description
whos
lists in alphabetical order the names,
sizes, and types of all variables in the currently active workspace.
whos -file
lists
variables in the specified MAT-file.filename
Note
Security Considerations: The
whos -file
command might execute code contained in
the MAT-file as it inspects the file. Avoid calling whos
-file
on untrusted MAT-files.
whos global
lists variables in the global
workspace.
whos ___
lists
only the specified variables. Use this syntax with any of the arguments in the
previous syntaxes.var1 ... varN
whos ___ -regexp
lists only the variables that match the specified regular expressions.expr1 ... exprN
Examples
Input Arguments
Output Arguments
Alternatives
You also can view the contents of MAT-files using the Details Panel of the Current Folder browser. In MATLAB Online™, to view the contents of MAT-files, preview them by clicking the Preview button to the right of the MAT-file in the Files browser.