title: MATLAB command simplify: use multiple or just one
body: <p>I am currently using the MATLAB Symbolic Toolbox to simplify and reduce non-linear equations of substantial size. Therefore, I use the MATLAB command <code>simplify</code> extensively. For the current situation, I need to simplify many 4-by-4 symbolic matrices.</p>
  
  <p>For instance, I want to check whether two symbolic matrices (<code>A</code> and <code>B</code>, both 4-by-4) are equivalent representations of the same matrix; this is my current solution:</p>
  
  <pre><code>diff_AB = simplify(A-B);
  </code></pre>
  
  <p>As <code>A</code> and <code>B</code> are 4-by-4 square matrices, I can also decide to split the rows of the matrices and compute the symbolic difference of each row.</p>
  
  <p>In terms of computational effort and the amount of simplification, what is the best way to handle these symbolic matrices?</p>