="codeinput">S2 = symktensor(X, m, r, true)
</pre><pre class="codeoutput">S2 is a symktensor of order 3 and dimension 4
	S2.lambda = [ 1  1 ]
	S2.U = 
		     1     5
		     2     6
		     3     7
		     4     8
</pre><p>A random <tt>symktensor</tt> object can be declared by passing the constructor two arguments: the rank of the 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).</p><pre class="codeinput