writing a matrix on overleaf code example
Example 1: matrix latex
\begin{bmatrix}
1 & 2 & 3 \\
a & b & c \\
a & b & c \\
\end{bmatrix}
Example 2: matrix latex
$\left(\begin{array}{cc} a & b \\ c & d \end{array}\right)$
\begin{bmatrix}
1 & 2 & 3 \\
a & b & c \\
a & b & c \\
\end{bmatrix}
$\left(\begin{array}{cc} a & b \\ c & d \end{array}\right)$