Main Content

editGroupName

Change group name in label definition creator object for multisignal workflow

Since R2020a

Description

example

editGroupName(ldc,oldname,newname) changes the group name from oldname to newname. This function changes the group name in all the label definitions that have the oldname.

Examples

collapse all

Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

Add labels named 'Car' and 'Truck' in a group named 'Vehicle'.

addLabel(ldc,'Car',labelType.Rectangle,'Group','Vehicle');
addLabel(ldc,'Truck',labelType.Rectangle,'Group','Vehicle');

Change the 'Vehicle' group name 'FourWheeler'.

editGroupName(ldc,'Vehicle','FourWheeler');

Display the details of the updated labelDefinitionCreatorMultisignal object.

ldc
ldc = 
labelDefinitionCreatorMultisignal contains the following labels:

	Car with 0 sublabels and 0 attributes and belongs to FourWheeler group.	(info)
	Truck with 0 sublabels and 0 attributes and belongs to FourWheeler 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.

Old group name, specified as a character vector or string scalar that uniquely identifies group name you want to modify.

New group name, specified as a character vector or string scalar that uniquely identifies the new group name.

Version History

Introduced in R2020a