tensor.

%Declaring a symmetric Kruskal tensor
ndims(S)
size(S)

%% Use ncomponents for the rank of symktensor
% The function |ncomponents| returns the number of components of a
% |symktensor| object. This is $r$ in the symktensor's definition, the number
% of outer-product summands in the symmetric Kruskal tensor decomposition.
ncomponents(S)
%% Use full to convert a symktensor to a tensor
% The function |full| converts a symktensor to a tensor.
full(S)
%% Use double to convert a symktensor to a multi-dime