<h2 id="27">Use permute to reorder the modes of a ttensor</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.5548    0.4508
	    0.8928    0.2548
		ans.core(:,:,2) = 
	    0.1210    0.7159
	    0.2731    0.8656
	ans.U{1} = 
		    0.1909    0.1739
		    0.8439    0.1708
	ans.U{2} = 
		    0.0784    0.6408
	ans.U{3} = 
		  