Status of Variables Next: Summary of Built-in Variables Previous: Persistent Variables Up: Variables
clear [-x] pattern ... | Command |
Delete the names matching the given patterns from the symbol table. The
pattern may contain the following special characters:
For example the command clear foo b*r clears the name If With -x clear the variables that don't match the patterns. This command may not be used within a function body. |
who options pattern ... | Command |
whos options pattern ... | Command |
List currently defined symbols matching the given patterns. The
following are valid options. They may be shortened to one character but
may not be combined.
Valid patterns are the same as described for the The command whos is equivalent to who -long. |
whos options pattern ... | Command |
See who. |
whos_line_format | Built-in Variable |
This string decides in what order attributtes of variables are to be printed.
The following commands are used:
Every command may also have a modifier:
A command is composed like this: %[modifier]<command>[:size_of_parameter[:center-specific[:print_dims[:balance]]]]; Command and modifier is already explained. Size_of_parameter tells how many columns the parameter will need for printing. print_dims tells how many dimensions to print. If number of dimensions exceeds print_dims dimensions will be printed like x-D. center-specific and print_dims may only be applied to command %s. A negative value for print_dims will cause Octave to print all dimensions whatsoever. balance specifies the offset for printing of the dimensions string. Default format is " %p:4; %ln:6; %cs:16:6:8:1; %rb:12; %lt:-1;\n". |
exist (name type) | Built-in Function |
Return 1 if the name exists as a variable 2 if the name (after
appending .m ) is a function file in Octave's LOADPATH 3 if the
name is a .oct file in Octave's LOADPATH 5 if the name is a
built-in function 7 if the name is a directory, 101 if the name is
a built-in variable 102 if the name is a built-in constant, or 103
if the name is a function not associated with a file (entered on
the command line).
Otherwise return 0. This function also returns 2 if a regular file called name
exists in Octave's If the optional argument type is supplied check only for symbols of the specified type. Valid types are
|
document (symbol text) | Built-in Function |
Set the documentation string for symbol to text. |
type options name ... | Command |
Display the definition of each name that refers to a function.
Normally also displays if each name is user-defined or builtin;
the Currently Octave can only display functions that can be compiled cleanly because it uses its internal representation of the function to recreate the program text. Comments are not displayed because Octave's parser currently discards them as it converts the text of a function file to its internal representation. This problem may be fixed in a future release. |
which name ... | Command |
Display the type of each name. If name is defined from a function file the full name of the file is also displayed. |