This is LaTeX code:
[latex]
\left[\begin{array}{ccc} \cos b & 0 & 0 \\ 0 & \cos b & 0 \end{array}\right]
[/latex]