Main Content

SettingsGroup

Group of settings and subgroup objects

Description

A SettingsGroup is an object within the settings hierarchical tree. At the top of the tree is the root SettingsGroup. Each SettingsGroup can contain a collection of other SettingsGroup and Setting objects.

Creation

Access the root SettingsGroup object using the settings function. For example:

s = settings

Object Functions

addSettingAdd new setting
addGroupAdd new settings group
removeGroupRemove settings group
removeSettingRemove setting
hasGroupDetermine if settings group exists
hasSettingDetermine if setting exists in settings group

Examples

collapse all

Get and set the value for the maximum column width for comments in MATLAB®.

Get the root SettingsGroup object and view the active value for the maximum column width for comments in MATLAB.

s = settings
s.matlab.editor.language.matlab.comments.MaxWidth.ActiveValue
ans =
  int32
   75

Set the temporary value for the maximum column width for comments in MATLAB.

s.matlab.editor.language.matlab.comments.MaxWidth.TemporaryValue = 80
s.matlab.editor.language.matlab.comments.MaxWidth.ActiveValue
ans =
  int32
   80

Version History

Introduced in R2018a