matlab.system.display.SectionGroup class
Package:matlab.system.display
Superclasses:
Section group for System objects
Syntax
matlab.system.display.SectionGroup(N1,V1,...Nn,Vn)
matlab.system.display.SectionGroup(Obj,...)
Description
matlab.system.display.SectionGroup(N1,V1,...Nn,Vn)
creates a group for displaying System object™ properties and display sections created withmatlab.system.display.Section
. You define such sections or properties using property Name-Value pairs (N
,V
). A section group can contain both properties and sections. You usematlab.system.display.SectionGroup
to define section groups using thegetPropertyGroupsImpl
method. Section groups display as separate tabs in theMATLAB Systemblock. The available Section properties are:
Title
— Group title. The default value is an empty character vector.TitleSource
— Source of group title. Valid values are'Property'
and'Auto'
. The default value is'Property'
, which uses the character vector from theTitle
property. If theObj
name is given, the default value isAuto
, which uses theObj
name. In the System object property display at the MATLAB®command line, you can omit the default "Main" title for the first group of properties by settingTitleSource
to'Auto'
.Description
— Group or tab description that appears above any properties or panels. The default value is an empty character vector.PropertyList
— Group or tab property list as a cell array of property names. The default value is an empty array. If theObj
name is given, the default value is all eligible display properties.Sections
— Group sections as an array of section objects. If theObj
name is given, the default value is the default section for theObj
.Type
— Container type. For example, tab, group, panel, and collapsible panel.Row
— Specify the row in which the containers need to be placed (current/new). You can specify the row using the enum class matlab.system.display.internal.Row.AlignPrompts
— Specify a boolean value to control align prompts within the containers.
matlab.system.display.SectionGroup(Obj,...)
creates a section group for the specified System object (Obj
) and sets the following property values:
TitleSource
— Set to'Auto'
.Sections
— Set tomatlab.system.display.Section
object forObj
.
You can usemfilename(类)
from within this method to get the name of the System object. If you set any Name-Value pairs, those property values override the default settings.