%% Obtain Dimension Labels
% Obtain the dimension labels of a formatted dlarray.

dlX = dlarray(randn(3,4),'TS');
d = dims(dlX)

% Obtain the labels of an unformatted dlarray.

y = stripdims(dlX);
d = dims(y)

% Copyright 2021 The MathWorks, Inc.