Matrix writing in latex

Time:2021-9-5

matrix

The first method is to write in matrix, pMatrix, bMatrix, bMatrix, vmatrix or vmatrix environment

For example,

1.

\begin{matrix}
0 & 1 \\
1 & 0
\end{matrix}

As shown in the figure below:

Matrix writing in latex

2.

\begin{bmatrix}
0 & -i \\
i & 0
\end{bmatrix}

Matrix writing in latex

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Hacking