96
		    0.1703    0.6234
</pre><h2>Use permute to reorder the modes of a ttensor<a name="27"></a></h2><pre class="codeinput">permute(X,[3 2 1]) <span class="comment">%&lt;-- Reverses the modes of X</span>
</pre><pre class="codeoutput">ans is a ttensor of size 2 x 1 x 3
	ans.core is a tensor of size 2 x 2 x 2
		ans.core(:,:,1) = 
	    0.8167    0.0174
	    0.6211    0.2440
		ans.core(:,:,2) = 
	    0.9855    0.8194
	    0.5602    0.8220
	ans.U{1} = 
		    0.6365    0.5396
		    0.1703    0.6234
	ans.U{2} = 