ss="comment">%&lt;--size specified from symtensor</span>

S2 = symktensor(X(:), symtensor(@ones,m,n), true) <span class="comment">%&lt;--'nolambda' option</span>

S2 = symktensor(V, m, r) <span class="comment">%&lt;--size specified from modes and dimension</span>

S2 = symktensor(X(:), m, r, true) <span class="comment">%&lt;--size from modes and dimension, 'nolambda' option</span>
</pre><pre class="codeoutput">S2 is a symktensor of order 3 and dimension 4
	S2.lambda = [ 1 -1 ]
	S2.U = 
		     1     5
		    