ading mode-n singular vectors as
% the initial guess.
M3 = cp_als(X,3,'init','nvecs','printitn',10);

%%
% Compare to the first solution using score, and see they are nearly the
% same because the score is close to 1.
score(M1,M3)

%% Change the order of the dimensions in CP
[M4,~,info] = cp_als(X,3,'dimorder',[2 3 1],'init','nvecs','printitn',10);
score(M1,M4)

%%
% In the last example, we also collected the third output argument which
% has some extra information in it. The field |info.iters| has the tota