%% Create Label Definitions Table from Label Definition Creator Object for Multisignal Workflow
% Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

% Add a label called 'Vehicle'. Specify the label type as 'Rectangle' and add a description to the label.

addLabel(ldc,'Vehicle','Rectangle','Description','Bounding box for the vehicle. Use this label for cars and buses.')

% Add an attribute 'IsCar' to the label 'Vehicle'. Specify the attribute type as 'logical' with the value true and add a description for the attribute.

addAttribute(ldc,'Vehicle','IsCar','logical',true,'Description','Type of vehicle')

% Add an attribute 'IsBus' to the label 'Vehicle'. Specify the attribute type as 'logical' with the value false and add a description for the attribute.

addAttribute(ldc,'Vehicle','IsBus','logical',false,'Description','Type of vehicle')

% Create a label definitions table from the definitions stored in the object.

labelDefs = create(ldc)

% Copyright 2019 The MathWorks, Inc.