matrix in latex math code example

Example 1: matrix latex

\begin{bmatrix}
1 & 2 & 3 \\
a & b & c \\
a & b & c \\
\end{bmatrix}

Example 2: latex matrix

% Plain matrix
\begin{matrix}
	1 & 2 & 3\\
	a & b & c
\end{matrix}

% Parantheses matrix
\begin{pmatrix}
	1 & 2 & 3\\
	a & b & c
\end{pmatrix}

% Square bracket matrix
\begin{bmatrix}
	1 & 2 & 3\\
	a & b & c
\end{bmatrix}

% Braces matrix (curly brackets matrix)
\begin{Bmatrix}
	1 & 2 & 3\\
	a & b & c
\end{Bmatrix}

% Pipes
\begin{vmatrix}
	1 & 2 & 3\\
	a & b & c
\end{vmatrix}

% Double pipes
\begin{Vmatrix}
	1 & 2 & 3\\
	a & b & c
\end{Vmatrix}

Tags:

Misc Example