Main Content

hasPersonalValue

Determine whether setting has personal value set

Description

example

hasPersonalValue(s) returns 1 if the setting has a personal value set. Otherwise, hasPersonalValue returns 0.

Examples

collapse all

Check whether the setting for the maximum column width for comments in MATLAB® has a personal value. If the setting has a personal value, clear the value.

s = settings;

if(hasPersonalValue(s.matlab.editor.language.matlab.comments.MaxWidth))
    clearPersonalValue(s.matlab.editor.language.matlab.comments.MaxWidth)    
end

Input Arguments

collapse all

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.

Version History

Introduced in R2018a