Navigation

Operators and Keywords

Function List:

C++ API

: license
: license inuse
: license inuse feature
: license ("inuse")
: retval = license ("inuse")
: retval = license ("test", feature)
: retval = license ("checkout", feature)
: [retval, errmsg] = license ("checkout", feature)

Get license information for Octave and Octave packages.

GNU Octave is free software distributed under the GNU General Public License (GPL), and a license manager makes no sense. This function is provided only for MATLAB compatibility.

When called with no extra input arguments, it returns the Octave license, otherwise the first input defines the operation mode and must be one of the following strings: inuse, test, and checkout. The optional feature argument can either be "octave" (core), or an Octave package.

"inuse"

Returns a list of loaded features, i.e., octave and the list of loaded packages. If an output is requested, it returns a struct array with the fields "feature", and "user".

"test"

Return true if the specified feature is installed, false otherwise.

An optional third argument "enable" or "disable" is accepted but ignored.

"checkout"

Return true if the specified feature is installed, false otherwise. An optional second output will have an error message if a package is not installed.

See also: pkg, ver, version.

Package: octave