ations and try again, using the same initial guess.
M2 = cp_als(X,3,'maxiters',100,'init',U2);

%%
% This solution looks more or less the same as the previous one.
info2 = viz(M2,'Figure',2,vizopts{:});

%% Compare the two solutions 
% Use the |ktensor/score| function to compare the two solutions. A score of
% 1 indicates a perfect match. These are not exactly the same, but they are
% pretty close.
score(M1,M2)

%% Rerun with same initial guess
% Using the same initial guess (and all other parameters) gives