%% Display Information On Definitions Stored in Label Definition Creator Object for Multisignal Workflow
% Load an existing label definition table.

labelDefFile = fullfile(toolboxdir('driving'), 'drivingdata', 'labelDefsMultiSignal.mat');
ld = load(labelDefFile)

% Create a labelDefinitionCreatorMultisignal object from the label definitions table.

ldc = labelDefinitionCreatorMultisignal(ld.labelDefs)

% Add an attribute 'Color' to the label 'Car'. Specify the attribute type as 'List' and add items to the list.

addAttribute(ldc,'Car','Color','List',{'Red','Green','Blue'});

% Display the details of the updated labelDefinitionCreatorMultisignal object.

ldc

% Display information about the attribute 'Color' under the label 'Car'.

colorStruct = info(ldc,'Car/Color')

% Display the field ListItems in the 'Color' attribute of the label 'Car'.

colorStruct.ListItems

% Copyright 2019 The MathWorks, Inc.