Main Content

hasFactoryValue

Determine whether setting has factory value set

Description

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

example

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.

Version History

Introduced in R2018a