Main Content

hasTemporaryValue

Determine whether the setting has a temporary value set

Description

example

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

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.

Introduced in R2018a