setpref(group,pref,value)sets the specified preference in the specified group to the specified value. If the preference or group does not exist, MATLAB®creates it.
Preferences are persistent and maintain their values between MATLAB sessions.
group—Custom preference group name character vector|string scalar
Custom preference group name, specified as a character vector or a string scalar.groupmust be a valid variable name. For more information, seeVariable Names.
Example:'mytoolbox'
Data Types:char|string
pref—Custom preference name character vector|cell array of character vectors|string array
Custom preference name, specified as a character vector, a cell array of character vectors, or a string array.prefmust be a valid variable name. For more information, seeVariable Names.
Ifpref是一个单元阵列的性格吗vectors or a non-scalar string,valuemust specify a value for each preference specified inpref.
Example:'version'
Example:{'version','modifieddate','docpath'}
Data Types:char|string
value—Custom preference value any MATLAB data type
Custom preference value, specified as any MATLAB data type, including numeric types, character vectors, cell arrays, structures, and objects. Ifpref是一个单元阵列的性格吗vectors or a nonscalar string array,valuemust specify a value for each preference specified inpref.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.