Determine whether the setting has a factory value set
hasFactoryValue(s)
example
hasFactoryValue(s) returns 1 if the setting has a factory value set. Otherwise, hasFactoryValue returns 0.
s
1
hasFactoryValue
0
collapse all
Check whether the setting for the maximum column width for comments in MATLAB® has a factory value.
s = settings; hasFactoryValue(s.matlab.editor.language.matlab.comments.MaxWidth)
ans = logical 1
setting
Setting, specified as a setting object. Use the settings function to access the root settings group object and all the available settings in the tree.
settings
hasPersonalValue | hasTemporaryValue | hasTemporaryValue | settings
hasPersonalValue
hasTemporaryValue