# Math Help - Can't get the matrix input working

1. ## Can't get the matrix input working

[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]

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

2. Hello, novice!

\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?
You must declare the number of columns in the matrix.

[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]

$
\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}
$

3. Originally Posted by Soroban
Hello, novice!

You must declare the number of columns in the matrix.

[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]

$
\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}
$

Thank you for the help. I am going to try it right away.

4. Originally Posted by novice
Thank you for the help. I am going to try it right away.
I copied yours here:

[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]