editAttributeDescription
R2026bModify attribute description in multi-sensor label definition creator
Since R2026b
Description
editAttributeDescription(
modifies the description of an attribute under the label or sublabel identified by
ldc,labelName,attributeName,description)labelName. The label or sublabel must be associated with the labelDefinitionCreatorMultiSensor object ldc.
Examples
Modify the description of attributes under a label and a sublabel in
a labelDefinitionCreatorMultiSensor object and verify the changes.
Create an empty labelDefinitionCreatorMultiSensor object.
ldc = labelDefinitionCreatorMultiSensor;
Add a label called "TrafficLight".
addLabel(ldc,"TrafficLight",labelType.Rectangle);Add a sublabel named "RedLight" for label
"TrafficLight".
addSublabel(ldc,"TrafficLight","RedLight",labelType.Rectangle);
Add an attribute named "Active" to the label
"TrafficLight". Set the attribute type as
"Logical" with the default value true.
addAttribute(ldc,"TrafficLight","Active",attributeType.Logical,true);
Add an attribute called "isOn" to the sublabel
"RedLight". Set the attribute type as "Logical"
with the default value false.
addAttribute(ldc,"TrafficLight/RedLight","isOn",attributeType.Logical,false);
Modify the Attribute Description Under a Label
Display information about the label "TrafficLight".
info(ldc,"TrafficLight") Name: "TrafficLight"
SignalType: Image
LabelType: Rectangle
Group: "None"
LabelColor: {''}
Attributes: "Active"
Sublabels: "RedLight"
Description: ' '
Name: "TrafficLight"
SignalType: PointCloud
LabelType: Cuboid
Group: "None"
LabelColor: {''}
Attributes: "Active"
Sublabels: "RedLight"
Description: ' '
Modify the description of the attribute "Active" under the label
"TrafficLight".
editAttributeDescription(ldc,"TrafficLight","Active","Is Active: true (DefaultValue: 1), false (DefaultValue: 0)")
Display information about the label "TrafficLight" to verify the
modified attribute description.
info(ldc,"TrafficLight/Active") Name: "Active"
Type: Logical
DefaultValue: 1
Description: 'Is Active: true (DefaultValue: 1), false (DefaultValue: 0)'
Modify the Attribute Description Under a Sublabel
Display information about the sublabel "RedLight".
info(ldc,"TrafficLight/RedLight") Name: "RedLight"
Type: Rectangle
LabelColor: ''
Attributes: "isOn"
Sublabels: []
Description: ' '
Modify the description of the attribute "isOn" under the sublabel
"RedLight".
editAttributeDescription(ldc,"TrafficLight/RedLight","isOn","Is On: true (DefaultValue: 1), false (DefaultValue: 0)")
Display information about the sublabel "RedLight" to verify the
modified attribute description.
info(ldc,"TrafficLight/RedLight/isOn") Name: "isOn"
Type: Logical
DefaultValue: 0
Description: 'Is On: true (DefaultValue: 1), false (DefaultValue: 0)'
Input Arguments
Label definition creator for the multi-sensor workflow, specified as a labelDefinitionCreatorMultiSensor object.
Label or sublabel name, specified as a character vector or string scalar that uniquely identifies the label or sublabel to which the attribute is associated.
To specify a label, use the form 'labelName'.
Example: editAttributeDescription(ldc,"TrafficLight","Active","Is Active:
true (DefaultValue: 1), false (DefaultValue: 0)")
To specify a sublabel, use the form 'labelName/sublabelName'. In this case, the attribute is associated with the sublabel.
Example: editAttributeDescription(ldc,"TrafficLight/RedLight","isOn","Is On:
true (DefaultValue: 1), false (DefaultValue: 0)")
Attribute name, specified as a character vector or string scalar that identifies the attribute for which the description is to be modified.
Description, specified as a character vector or string scalar that contains a new
description for the attribute identified by attributeName.
Version History
Introduced in R2026b
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)