Main Content

hasTemporaryValue

Determine whether setting has temporary value set

Description

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

example

Examples

collapse all

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

s = settings;

if(hasTemporaryValue(s.matlab.editor.language.matlab.comments.MaxWidth))
    clearTemporaryValue(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