Main Content
getpref
Get custom preference value
Description
prefvalue = getpref(
returns the value of the specified preference in the specified group.
group
,pref
)prefvalue
can be any MATLAB® data type, including numeric types, character vectors, cell arrays,
structures, and objects. If pref
specifies multiple
preferences, getpref
returns the values in a cell array. If the
specified preference does not exist, MATLAB returns an error.
prefvalue = getpref
returns all custom groups and preferences
as a structure.
Examples
Input Arguments
Version History
Introduced before R2006a