I am currently using the MATLAB Symbolic Toolbox to simplify and reduce non-linear equations of substantial size. Therefore, I use the MATLAB command simplify
extensively. For the current situation, I need to simplify many 4-by-4 symbolic matrices.
For instance, I want to check whether two symbolic matrices (A
and B
, both 4-by-4) are equivalent representations of the same matrix; this is my current solution:
diff_AB = simplify(A-B);
As A
and B
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.
In terms of computational effort and the amount of simplification, what is the best way to handle these symbolic matrices?