specified from modes and dimension

S2 = symktensor(X(:), m, r, true) %<REPLACE_WITH_DASH_DASHsize from modes and dimension, 'nolambda' option

%%
% A symmetric Kruskal tensor can also be constructed directly from a generic
% Kruskal tensor in the |ktensor| format. If the Kruskal tensor is not 
% symmetric, it is symmetrized by averaging the factor matrices and taking
% care to get the signs aligned.
K = ktensor(L, X-1, X+2, 2*X);
S2 = symktensor(K)
%%
% This method of declaring a symktensor is useful in co