Hi folks
I have been tinkering with the Atto Equation editor (MathJax and TeX) in part to fix the 2x2 Matrix button (MDL-45067). As a result, I came to the conclusion that matrices were perhaps too specialist and complex for the general Equation editor and developed a separate Matrix editor that can be added to the Atto editor toolbar.
The Matrix editor supports a range of symbols, flexible and fixed-size brackets, braces and delimiters and includes templates for 1xn, 2,n, 3xn and mxn matrices and arrays. Also, includes small (inline) matrices.
So, you can add similar to the following to your Moodle content with a few clicks:
\( \left( \begin{matrix} \begin{matrix} a_{1,1} \\ a_{2,1} \end{matrix} \end{matrix} \right)
\left[ \begin{matrix} a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2} \end{matrix} \right]
\left\{ \begin{matrix} a_{1,1} & a_{1,2} & a_{1,3} \\ a_{2,1} & a_{2,2} & a_{2,3} \end{matrix} \right\}
\left| \begin{smallmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m,1} & a_{m,2} & \cdots & a_{m,n} \end{smallmatrix} \right|
\begin{array}{c|lcr} n & \text{Left} & \text{Center} & \text{Right} \\ \hline 1 & 0.24 & 1 & 125 \\ 2 & -20 & 2000 & 1+10i \end{array} \)
Currently, can be downloaded from GitHub:
https://github.com/geoffrowland/moodle-editor_atto-matrix
and will hopefully become available from the Moodle plugins Repository.
Atto toolbar icon for matrix editor: