This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

hasTemporaryValue

Determine whether the setting has a temporary value set

Syntax

hasTemporaryValue(s)

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