l
% number of iterations. The field |info.params| has the information used to
% run the method. Unless the initialization method is 'random', passing the
% parameters back to the method will yield the exact same results.
M4alt = cp_als(X,3,info.params);
score(M4,M4alt)

%% Change the tolerance
% It's also possible to loosen or tighten the tolerance on the change in
% the fit. You may need to increase the number of iterations for it to
% converge.
M5 = cp_als(X,3,'init','nvecs','tol',1e-6,'maxiters',1000,'pr