%% Create Label Definition Creator Object for Multisignal Workflow from Existing Label Definitions Table
% Load an existing multisignal label definitions table into the workspace.

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

% Create a labelDefinitionCreatorMultisignal object from the label definitions table.

ldc = labelDefinitionCreatorMultisignal(ld.labelDefs)

% Add a new attribute to the label 'Car'.

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

% Display the details of the updated labelDefinitionCreatorMultisignal object.

ldc

% Copyright 2019 The MathWorks, Inc.