labelDefinitionsSummary
Get summary table of signal label definitions
Syntax
Description
returns a table, T
= labelDefinitionsSummary(lbldefs
)T
, with the properties of the label definitions
contained in lbldefs
, a vector of signalLabelDefinition
objects.
returns a table, T
= labelDefinitionsSummary(lss
)T
, with the properties of the label definitions
contained in the labeledSignalSet
object
lss
.
Examples
Label Properties
Load a labeled signal set containing recordings of whale songs.
load whales
lss
lss = labeledSignalSet with properties: Source: {2x1 cell} NumMembers: 2 TimeInformation: "sampleRate" SampleRate: 4000 Labels: [2x3 table] Description: "Characterize wave song regions" Use labelDefinitionsHierarchy to see a list of labels and sublabels. Use setLabelValue to add data to the set.
Visualize the label properties of the set.
labelDefinitionsSummary(lss)
ans=3×9 table
LabelName LabelType LabelDataType Categories ValidationFunction DefaultValue Sublabels Tag Description
______________ ___________ _____________ ____________ __________________ ____________ ___________________________ ___ ____________________________
"WhaleType" "attribute" "categorical" {3x1 string} {["N/A" ]} {0x0 double} {0x0 double } "" "Whale type"
"MoanRegions" "roi" "logical" {["N/A" ]} {0x0 double} {0x0 double} {0x0 double } "" "Regions where moans occur"
"TrillRegions" "roi" "logical" {["N/A" ]} {0x0 double} {0x0 double} {1x1 signalLabelDefinition} "" "Regions where trills occur"
Visualize the properties of the TrillRegions
label.
labelDefinitionsSummary(lss,"TrillRegions")
ans=1×9 table
LabelName LabelType LabelDataType Categories ValidationFunction DefaultValue Sublabels Tag Description
______________ _________ _____________ __________ __________________ ____________ ___________________________ ___ ____________________________
"TrillRegions" "roi" "logical" {["N/A"]} {0x0 double} {0x0 double} {1x1 signalLabelDefinition} "" "Regions where trills occur"
Visualize the properties of the TrillRegions
sublabels.
labelDefinitionsSummary(lss,"TrillRegions",'sublbls')
ans=1×8 table
LabelName LabelType LabelDataType Categories ValidationFunction DefaultValue Tag Description
____________ _________ _____________ __________ __________________ ____________ ___ _____________
"TrillPeaks" "point" "numeric" {["N/A"]} {0x0 double} {0x0 double} "" "Trill peaks"
Input Arguments
lbldefs
— Signal label definitions
signalLabelDefinition
object | vector of signalLabelDefinition
objects
Signal label definitions, specified as a signalLabelDefinition
object or
a vector of signalLabelDefinition
objects.
Example:
can label a region of a signal in which a patient is asleep.signalLabelDefinition
("Asleep",'LabelType','roi','LabelDataType','logical')
lss
— Labeled signal set
labeledSignalSet
object
Labeled signal set, specified as a labeledSignalSet
object.
Example:
specifies a two-member set of random
signals containing the attribute labeledSignalSet
({randn(100,1)
randn(10,1)},signalLabelDefinition('female'))'female'
.
lblname
— Label or sublabel name
character vector | string scalar | cell array of character vectors | string array
Label or sublabel name. To specify a label, use a character vector or a string scalar. To specify a sublabel, use a two-element cell array of character vectors or a two-element string array:
The first element is the name of the parent label.
The second element is the name of the sublabel.
Example: signalLabelDefinition("Asleep",'LabelType','roi')
specifies a label of name
"Asleep"
for a region of a
signal in which a patient is asleep during a
clinical trial.
Example: {'Asleep' 'REM'}
or
["Asleep" "REM"]
specifies a
region of a signal in which a patient undergoes
REM sleep.
Output Arguments
T
— Summary table
table
Summary table with the properties of a label.
Version History
Introduced in R2018b
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)