Main Content

hasInstallationValue

Determine whether setting has installation value set

Since R2022a

Description

hasInstallationValue(s) returns 1 if the setting has an installation value set. Otherwise, hasInstallationValue returns 0.

example

Examples

collapse all

Set an installation value for the maximum column width for comments in MATLAB®. (Note that this example assumes that installation settings are writable by the user.) Use hasInstallationValue to verify that the installation value is set.

s = settings;
s.matlab.editor.language.matlab.comments.MaxWidth.InstallationValue = 80;
hasInstallationValue(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 R2022a