latex how to make matrix code example
Example 1: latex pmatrix
Trying to typeset an inline matrix here
$\begin{pmatrix}
a & b\\
c & d
\end{pmatrix}$
but it looks too big, so let's try
$\big(\begin{smallmatrix}
a & b\\
c & d
\end{smallmatrix}\big)$
instead.
Example 2: matrix latex
$\left(\begin{array}{cc} a & b \\ c & d \end{array}\right)$