I'm doing an FEM assignment using Mathematica.
(EK1 = {{a11, a12}, {a21, a22}}) // MatrixForm
(EK2 = {{b22, b23}, {b32, b33}}) // MatrixForm
I don't know how the best way to create new matrix like this:
(K = {{a11, a12, 0}, {a21, a22 + b22, b23}, {0, b32, b33}}) // MatrixForm
MATLAB does it quite easily but how about Mathematica?
{2,1}
was a typo (as everyone seems to agree) and I've edited the question to change it toa21
, so that the answers make sense. If you disagree, please leave a comment, else I'll assume that you are in agreement with this change. $\endgroup$