nsor with a tensor core
core = tensor(rand(3,2,1),[3 2 1]); %<REPLACE_WITH_DASH_DASH The core tensor.
U = {rand(5,3), rand(4,2), rand(3,1)}; %<REPLACE_WITH_DASH_DASH The matrices.
X = ttensor(core,U) %<REPLACE_WITH_DASH_DASH Create the ttensor.
%% Alternate core formats: sptensor, ktensor, or ttensor
core1 = sptenrand([3 2 1],3); %<REPLACE_WITH_DASH_DASH Create a 3 x 2 x 1 sptensor.
Y = ttensor(core1,U) %<REPLACE_WITH_DASH_DASH Core is a sptensor.
%%
V = {rand(3,2),rand(2,2),rand(1,2)}; %<REPLACE_WITH_DASH_