I have two matrices - s1 and s2.
I want their sum to remain unevaluated.
For instance, the command
s1 + s2 // MatrixForm
should result to two separate matrices joined by the plus operator.
I guess that I have to wrap s1 + s2 inside a function like Hold or Unevaluated, but I cannot find the proper workaround.
Any ideas?
Inactivate[MatrixForm[s1] + MatrixForm[s2], Plus]– ilian May 07 '15 at 11:38Row[{MatrixForm[s1] , "+", MatrixForm[s2]}]? – ilian May 07 '15 at 11:48Inactivetoo. – Kuba May 07 '15 at 13:02Inactiveand I shall close this one as a duplicate of it? – Mr.Wizard May 07 '15 at 13:03ReplacePart[ ReplacePart[ HoldForm[s1 + s2], {1, 1} -> (s1 // MatrixForm)], {1, 2} -> (s2 // MatrixForm)]– Alexei Boulbitch May 07 '15 at 13:15