%% Create Labeled dlarray
% Create a dlarray that has a data format with the labels 'S' and 'C'.

rng default % For reproducibility
X = randn(3,5);
dlX = dlarray(X,'SC')

% If you specify the labels in the opposite order, dlarray implicitly reorders the underlying data.

dlX = dlarray(X,'CS')

% Copyright 2019 The MathWorks, Inc.