主要内容

info

Display label, sublabel, or attribute information stored in label definition creator object for multisignal workflow

Description

info(最不发达国家,name)displays information about the specified label, sublabel, or attribute stored in thelabeldefinitionCreatormultisignalobject最不发达国家.

example

infoStruct= info(最不发达国家,name)将信息作为结构返回。

Examples

阿胶pse all

加载现有标签定义表。

labelDefFile = fullfile(toolboxdir('driving'),'drivingdata','Labeldefsmultisignal.mat'); ld = load(labelDefFile)
ld =struct with fields:labelDefs: [6x6 table]

Create alabeldefinitionCreatormultisignalobject from the label definitions table.

LDC = labeldefinitioncreatormultisignal(ld.labeldefs)
最不发达国家= labelDefinitionCreatorMultisignal 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'颜色'到标签'车'. Specify the attribute type as'列表'并将项目添加到列表中。

addAttribute(ldc,'车','颜色','列表',{'Red','Green','Blue'});

Display the details of the updatedlabeldefinitionCreatormultisignal目的。

最不发达国家
最不发达国家= labelDefinitionCreatorMultisignal 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'颜色'under the label'车'.

colorscont =info(ldc,'Car/Color')
colorscont =struct with fields:Name: "Color" Type: List ListItems: {'Red' 'Green' 'Blue'} Description: ' '

显示字段ListItems在里面'颜色'attribute of the label'车'.

colorStruct.ListItems
ans =1x3 cell{'Red'} {'Green'} {'Blue'}

Input Arguments

阿胶pse all

Label definition creator for the multisignal workflow, specified as alabeldefinitionCreatormultisignal目的。

名称的标签,sublabel或属性中最不发达国家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(最不发达国家,“交通灯/红光”)

  • 要指定属性,请使用表单'labelName/attributeName' or 'labelName/sublabelName/attributeName'.

Example:info(ldc,'TrafficLight/Active')

Example:信息(最不发达国家,“交通光/红光/ISON”)

Output Arguments

阿胶pse all

信息结构,作为包含字段的结构返回Name,SignalType(对于标签),LabelType(对于标签),Type(对于sublabels和属性),Description,Attributes(when pertinent),Sublabels(when pertinent),DefaultValue(对于属性),ListItems(for List attributes).

Version History

Introduced in R2020a