 tensor of size 5 x 4 x 3 with 10 nonzeros
	(1,3,1)    0.7400
	(3,1,2)    0.4319
	(3,2,1)    0.6343
	(3,3,2)    0.8030
	(4,1,2)    0.0839
	(4,2,1)    0.9455
	(4,4,2)    0.9159
	(4,4,3)    0.6020
	(5,3,3)    0.2536
	(5,4,3)    0.8735
</pre><pre class="codeinput">T = tucker_als(X,2)        <span class="comment">%&lt;-- best rank(2,2,2) approximation</span>
</pre><pre class="codeoutput">
Tucker Alternating Least-Squares:
 Iter  1: fit = 2.810591e-001 fitdelta = 2.8e-001
 Iter  2: fit = 3.474829e-001 fitdelta =