Navigation

Operators and Keywords

Function List:

C++ API

: setpref ("group", "pref", val)
: setpref ("group", {"pref1", "pref2", …}, {val1, val2, …})

Set the preference pref to the given val in the named preference group group.

The named preference group must be a string.

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

The corresponding value val may be any Octave value, .e.g., double, struct, cell array, object, etc. Or, if pref is a cell array of strings then val must be a cell array of values with the same size as pref.

If the named preference or group does not exist, it is added.

See also: addpref, getpref, ispref, rmpref.

Package: octave