Navigation

Operators and Keywords

Function List:

C++ API

Function File: getpref (group, pref)
Function File: getpref (group, pref, default)
Function File: getpref (group)

Return the preference value corresponding to the named preference pref in the preference group group.

The named preference group must be a character string.

If pref does not exist in group and default is specified, return default.

The preference pref may be a character string or a cell array of character strings.

The corresponding default value default may be any value, or, if pref is a cell array of strings, default must be a cell array of values with the same size as pref.

If neither pref nor default are specified, return a structure of preferences for the preference group group.

If no arguments are specified, return a structure containing all groups of preferences and their values.

See also: addpref, setpref, ispref, rmpref.

Package: octave