Hello, novice!

You must declare the number of columns in the matrix.\begin{array}

0.5 & 0.5 & 0 & 0 \\

0.5 & 0 & 0.5 & 0 \\

0.5 & 0 & 0 & 0.5 \\

0 & 0 & 0 & 1

\end{array}

I can't get the Latex matrix to work. What did I do wrong?

[math ]

\begin{array}{cccc}

0.5 & 0.5 & 0& 0 \\

0.5 & 0 & 0.5 & 0 \\

0.5 & 0 & 0 & 0.5 \\

0 & 0 & 0 & 1

\end{array}

[/tex]