Main Content

hasFactoryValue

Determine whether the setting has a factory value set

Description

example

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

Examples

collapse all

Check whether the setting for the maximum column width for comments in MATLAB® has a factory value.

s = settings;
hasFactoryValue(s.matlab.editor.language.matlab.comments.MaxWidth)
ans =
  logical
   1

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