info
R2026bDisplay label, sublabel, or attribute information from multi-sensor label definition creator
Since R2026b
Description
info( displays
information about the specified label, sublabel, or attribute stored in the ldc,name)labelDefinitionCreatorMultiSensor object ldc.
returns the information as a structure.infoStruct = info(ldc,name)
Examples
Display information about labels, sublabels, and attributes stored in
a labelDefinitionCreatorMultiSensor object.
Load an existing label definition table.
labelDefFile = fullfile(toolboxdir("pointcloud"),"pcdata","labelDefsMultiSensor.mat"); ld = load(labelDefFile)
ld = struct with fields:
labelDefs: [6×6 table]
Create a labelDefinitionCreatorMultiSensor object from the label definitions
table.
ldc = labelDefinitionCreatorMultiSensor(ld.labelDefs)
ldc = labelDefinitionCreatorMultiSensor contains the following labels: Car with 0 sublabels and 0 attributes and belongs to None group. (info) LeftLane with 0 sublabels and 0 attributes and belongs to None group. (info) Road with 0 sublabels and 0 attributes and belongs to None group. (info) Sunny with 0 sublabels and 0 attributes and belongs to None group. (info) Urban with 0 sublabels and 0 attributes and belongs to None group. (info) For more details about attributes and sublabels, use the info method.
Add an attribute "Color" to the label "Car".
Specify the attribute type as "List" and add items to the
list.
addAttribute(ldc,"Car","Color","List",{"Red","Green","Blue"});
Display the details of the updated
labelDefinitionCreatorMultiSensor object.
ldc
ldc = labelDefinitionCreatorMultiSensor contains the following labels: Car with 0 sublabels and 1 attributes and belongs to None group. (info) LeftLane with 0 sublabels and 0 attributes and belongs to None group. (info) Road with 0 sublabels and 0 attributes and belongs to None group. (info) Sunny with 0 sublabels and 0 attributes and belongs to None group. (info) Urban with 0 sublabels and 0 attributes and belongs to None group. (info) For more details about attributes and sublabels, use the info method.
Display information about the attribute "Color" under the label
"Car".
colorStruct = info(ldc,"Car/Color")colorStruct = struct with fields:
Name: "Color"
Type: List
ListItems: {'Red' 'Green' 'Blue'}
Description: ' '
Display the field ListItems in the "Color"
attribute of the label "Car".
colorStruct.ListItems
ans = 1×3 cell
{'Red'} {'Green'} {'Blue'}
Input Arguments
Label definition creator for the multi-sensor workflow, specified as a labelDefinitionCreatorMultiSensor object.
Name of label, sublabel, or attribute in the ldc object,
specified as a character vector or string scalar whose form depends on the type of name
you specify.
To specify a label, use the form 'labelName'.
Example: info(ldc,"TrafficLight")
To specify a sublabel, use the form 'labelName/sublabelName'.
Example: info(ldc,"TrafficLight/RedLight")
To specify an attribute, use the form 'labelName/attributeName' or 'labelName/sublabelName/attributeName'.
Example: info(ldc,"TrafficLight/Active")
Example: info(ldc,"TrafficLight/RedLight/isOn")
Output Arguments
Information structure, returned as a structure that contains the fields
Name, SignalType (for labels),
LabelType (for labels), Type (for sublabels and
attributes), Description, Attributes (when
pertinent), Sublabels (when pertinent),
DefaultValue (for attributes), and ListItems
(for List attributes).
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)