Skip to content

addpref

prefs · scripts/prefs/addpref.m

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

Add one or several new preferences to the group group, creating the group if needed.

Group and preference names must be valid variable names and are case sensitive. It is an error if a preference exists already in the group; use setpref to replace values. When pref is a single string then val is stored as it is, even if it is a cell array.