s="comment">%&lt;-- The core tensor.</span>
U = {rand(5,3), rand(4,2), rand(3,1)}; <span class="comment">%&lt;-- The matrices.</span>
X = ttensor(core,U) <span class="comment">%&lt;-- Create the ttensor.</span>
</pre><pre class="codeoutput">X is a ttensor of size 5 x 4 x 3
	X.core is a tensor of size 3 x 2 x 1
		X.core(:,:,1) = 
	    0.0142    0.9771
	    0.5962    0.2219
	    0.8162    0.7037
	X.U{1} = 
		    0.5221    0.1722    0.8948
		    0.9329    0.9688    0.2861
		    0.7134    0.3557    0.2512
		   