setpref(group,pref,value)
sets the specified setting in the specified group to the specified value. If the
setting or group does not exist, MATLAB® creates it.
Settings are persistent and maintain their values between MATLAB sessions.
Custom setting group name, specified as a character vector or a string
scalar. group must be a valid variable name. For more
information, see Variable Names.
Example: 'mytoolbox'
Data Types: char | string
Custom setting name, specified as a character vector, a cell array of
character vectors, or a string array. pref must be a
valid variable name. For more information, see Variable Names.
If pref is a cell array of character vectors or a
non-scalar string, value must specify a value for each
setting specified in pref.
Example: 'version'
Example: {'version','modifieddate','docpath'}
Data Types: char | string
Custom setting value, specified as any MATLAB data type, including numeric types, character vectors, cell
arrays, structures, and objects. If pref is a cell array
of character vectors or a nonscalar string array, value
must specify a value for each setting specified in
pref.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: United States.
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.