User`s guide
7 Functions — Alphabetical List
7-232
ans =
yes
Save Preferences
You can save your preferences to a MAT-file to use them in future MATLAB sessions.
Suppose you want to reuse preferences that you set for fetching large data. Assign
the preferences to the variable FetchLargeData and save them to a MAT-file
FetchLargeDataPrefs in your current folder.
FetchLargeData = setdbprefs;
save FetchLargeDataPrefs.mat FetchLargeData
Later, load the data and restore the preferences.
load FetchLargeDataPrefs.mat
setdbprefs(FetchLargeData)
• “Preference Settings for Large Data Import”
• “Working with Preferences”
Input Arguments
property — Database preference
string | cell array
Database preference, specified as a string to denote a preference associated with data
return formatting, error handling, null data handling, or other properties. To set
multiple database preferences, enter the preference strings in a cell array and match
the order with the corresponding values in the value argument. For the complete list
of properties, see “Setting Database Preferences Using the setdbprefs Function” on page
6-75.
Example: 'DataReturnFormat'
Example: {'DataReturnFormat';'NullStringRead'}
Data Types: char
value — Database preference value
string | cell array