Skip to content

setpref

prefs · scripts/prefs/setpref.m

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

Set one or several preferences of the group group to new values.

Unlike addpref, a preference that exists already is replaced (whatever the class of its value), and a missing preference or group is created. Names must be valid variable names and are case sensitive. If a name appears twice in the list the last value wins.