removeLabel
Remove label from label definition creator object for multisignal workflow
Since R2020a
Description
removeLabel(
removes the specified label from the ldc
,labelName
)labelDefinitionCreatorMultisignal
object ldc
.
Note
Removing a label also removes any sublabels or attributes associated with that label.
Examples
Remove Label from Label Definition Creator Object for Multisignal Workflow
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
ldc
— Label definition creator for multisignal workflow
labelDefinitionCreatorMultisignal
object
Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal
object.
labelName
— Label name
character vector | string scalar
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
See Also
Objects
Functions
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)