hasInstallationValue
Tests whether a setting has a installation value.
Category: Environment and Settings > System Commands
Syntax
tf = hasInstallationValue(S)
Returns true when the installation layer of setting S holds a value.
Description
A setting can hold a temporary, personal, installation and factory value at the same time, and ActiveValue shows the first one set in that order. hasInstallationValue looks at one layer only, so it tells whether that layer would take part in the lookup.
Input arguments
S- A
matlab.settings.Settingobject.
Output arguments
tf- Logical scalar:
trueif the installation value is set.
Example
Query the installation layer
s = settings;
g = addGroup(s, 'demo');
a = addSetting(g, 'Level', 'PersonalValue', 1);
disp(hasInstallationValue(a))
removeGroup(s, 'demo');
Output
0