in with a different initial guess, output the initial guess.
% This time we have two outputs. The first output is the solution as a
% ktensor. The second output is a cell array containing the initial guess.
% Since the first mode is not needed, it is omitted from the cell array.
[M2bad,U2] = cp_als(X,3);

%% Increase the maximium number of iterations
% Note that the previous run kicked out at only 50 iterations before
% reaching the specified convegence tolerance. Let's increate the maximum
% number of iter