Navigation

Operators and Keywords

Function List:

C++ API

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

Add the preference pref and associated value val to 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. An error will be issued if the preference already exists.

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.

See also: setpref, getpref, ispref, rmpref.

Package: octave