%% Modify Description of Label and Sublabel in Label Definition Creator Object for Multisignal Workflow
% Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

% Add a label with the name 'TrafficLight'. Specify the type of label as 'Rectangle'.

addLabel(ldc,'TrafficLight','Rectangle')

% Add a sublabel called 'Light' to the label 'TrafficLight'. Specify the type of the sublabel as 'Rectangle'.

addSublabel(ldc,'TrafficLight','Light','Rectangle')

% Modify Label Description
% Display information about the label 'TrafficLight'.

info(ldc,'TrafficLight')

% Modify the description for the label 'TrafficLight'.

editLabelDescription(ldc,'TrafficLight','Bounding box for the traffic light')

% Display information about the label 'TrafficLight' to verify the modified label description.

info(ldc,'TrafficLight')

% Modify Sublabel Description
% Display information about the sublabel 'Light' under the label 'TrafficLight'.

info(ldc,'TrafficLight/Light')

% Modify the description for the sublabel 'Light'.

editLabelDescription(ldc,'TrafficLight/Light','Bounding box around each light of the Traffic light')

% Display information about the sublabel 'Light' under the label 'TrafficLight' to verify the modified sublabel description.

info(ldc,'TrafficLight/Light')

% Copyright 2019 The MathWorks, Inc.