class="string">'Figure'</span>,2,vizopts{:});
</pre><img vspace="5" hspace="5" src="cp_als_doc_02.png" alt=""> <h2 id="8">Compare the two solutions</h2><p>Use the <tt>ktensor/score</tt> 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.</p><pre class="codeinput">score(M1,M2)
</pre><pre class="codeoutput">
ans =

    0.9981

</pre><h2 id="9">Rerun with same initial guess</h2><p>Using the same initial guess (and all other p