exponenta event banner

removeLabel

Удалить метку из объекта создания определения метки для рабочего процесса с несколькими сигналами

Синтаксис

Описание

пример

removeLabel(ldc,labelName) удаляет указанную метку из labelDefinitionCreatorMultisignal объект ldc.

Примечание

При удалении метки также удаляются все подметки или атрибуты, связанные с этой меткой.

Примеры

свернуть все

Загрузите существующую таблицу определений меток в рабочую область.

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

Создать labelDefinitionCreatorMultisignal из таблицы определений меток.

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.

Удалить метку с именем 'Car'.

removeLabel(ldc,'Car');

Просмотр подробных данных обновленного labelDefinitionCreatorMultisignal объект для подтверждения удаления метки.

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.

Входные аргументы

свернуть все

Создатель определения метки для потока операций с несколькими сигналами, указанный как labelDefinitionCreatorMultisignal объект.

Имя метки, указанное как вектор символов или строковый скаляр, однозначно идентифицирующий метку, подлежащую удалению из ldc объект.

См. также

Объекты

Функции

Представлен в R2020a