MATLAB Function Reference Previous page   Next Page
setpref

Set preference

Syntax

Description

setpref('group','pref',val) sets the preference specified by group and pref to the value val. Setting a preference that does not yet exist causes it to be created.

group labels a related collection of preferences. You can choose any name that is a legal variable name, and is descriptive enough to be unique, e.g., 'MathWorks_GUIDE_ApplicationPrefs'. The input argument pref identifies an individual preference in that group, and must be a legal variable name.

setpref('group',{'pref1','pref2',...,'prefn'},{val1,val2,...,valn}) sets each preference specified in the cell array of names to the corresponding value.

Examples

See Also

addpref, getpref, ispref, rmpref, uigetpref, uisetpref


Previous page  setfield setstr Next page

© 1994-2005 The MathWorks, Inc.