Main Content

removeLabel

Remove label from label definition creator object for multisignal workflow

Since R2020a

Description

removeLabel(ldc,labelName) removes the specified label from the labelDefinitionCreatorMultisignal object ldc.

Note

Removing a label also removes any sublabels or attributes associated with that label.

example

Examples

collapse all

Load an existing label definitions table into the workspace.

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

Create a labelDefinitionCreatorMultisignal object from the label definitions table.

ldc = labelDefinitionCreatorMultisignal(ld.labelDefs)
ldc = 
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.

Remove the label called 'Car'.

removeLabel(ldc,'Car');

Display the details of the updated labelDefinitionCreatorMultisignal object to confirm that the label has been removed.

ldc
ldc = 
labelDefinitionCreatorMultisignal contains the following labels:

	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.

Input Arguments

collapse all

Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal object.

Label name, specified as a character vector or string scalar that uniquely identifies the label to be removed from the ldc object.

Version History

Introduced in R2020a