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.

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 SettingsGroups and Setting objects.

Creation

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

s = settings

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

Introduced in R2018a