%% Remove Label Definition
% Load a labeled signal set containing recordings of whale songs.

load whales
lss

%
% Retrieve a hierarchical list of labels and sublabels.

labelDefinitionsHierarchy(lss)

%
% Remove the sublabel that labels peaks in the trill regions.

removeLabelDefinition(lss,{'TrillRegions' 'TrillPeaks'})

labelDefinitionsHierarchy(lss)

% Remove the label that specifies the whale type.

removeLabelDefinition(lss,"WhaleType")

getLabelNames(lss)

% Copyright 2018 The MathWorks, Inc.