This is LaTeX code:

[latex]
\left[\begin{array}{ccc}
1&0&0\\
0&-1&0\\
0&0&1
\end{array}\right]
[/latex]