List currently defined variables matching the given patterns.
Valid pattern syntax is the same as described for the clear
command.
If no patterns are supplied, all variables are listed.
By default, only variables visible in the local scope are displayed.
The following are valid options, but may not be combined.
global
List variables in the global scope rather than the current scope.
-regexp
The patterns are considered to be regular expressions when matching the
variables to display. The same pattern syntax accepted by the regexp
function is used.
-file
The next argument is treated as a filename. All variables found within the specified file are listed. No patterns are accepted when reading variables from a file.
If called as a function, return a cell array of defined variable names matching the given patterns.
See also: whos, isglobal, isvarname, exist, regexp.
Package: octave