e decomposition and a tensor or 
% symtensor (for size). The lambda vector is taken to be all ones, and the 
% factor matrix has elements drawn uniformly from (0,1).
T1 = tensor(n*ones(1,m)); %<REPLACE_WITH_DASH_DASH Declare a tensor for size
T2 = symtensor(@ones, n,m); %<REPLACE_WITH_DASH_DASH Declare a symtensor for size

S2 = symktensor(r, T1) %<REPLACE_WITH_DASH_DASHDeclare a random symktensor from tensor for size
S2 = symktensor(r, T2) %<REPLACE_WITH_DASH_DASHDeclare a random symktensor from symtensor 