hasTemporaryValue - Determine whether setting has temporary value set - MATLAB (original) (raw)

Main Content

Determine whether setting has temporary value set

Syntax

Description

hasTemporaryValue([s](#d126e732546)) returns1 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