">T1 = tensor(n*ones(1,m)); <span class="comment">%&lt;-- Declare a tensor for size</span>
T2 = symtensor(@ones, n,m); <span class="comment">%&lt;-- Declare a symtensor for size</span>

S2 = symktensor(r, T1) <span class="comment">%&lt;--Declare a random symktensor from tensor for size</span>
S2 = symktensor(r, T2) <span class="comment">%&lt;--Declare a random symktensor from symtensor for size</span>
</pre><pre class="codeoutput">S2 is a symktensor of order 2 and dimension 1
	S2.lambda = [ 1  1 ]
	S2.U = 
