Provide detailed information on currently defined variables matching the given patterns.
Options and pattern syntax are the same as for the who
command.
Extended information about each variable is summarized in a table with the following default entries.
Attributes of the listed variable. Possible attributes are:
Variable in local scope
a
Automatic variable. An automatic variable is one created by the
interpreter, for example argn
.
c
Variable of complex type.
f
Formal parameter (function argument).
g
Variable with global scope.
p
Persistent variable.
The name of the variable.
The logical size of the variable. A scalar is 1x1, a vector is 1xN or Nx1, a 2-D matrix is MxN.
The amount of memory currently used to store the variable.
The class of the variable. Examples include double, single, char, uint16, cell, and struct.
The table can be customized to display more or less information through
the function whos_line_format
.
If whos
is called as a function, return a struct array of defined
variable names matching the given patterns. Fields in the structure
describing each variable are: name, size, bytes, class, global, sparse,
complex, nesting, persistent.
See also: who, whos_line_format.
Package: octave