I tried to create a 7x5 matrix in MHL latex. I wrote this code, but I keep getting an "invalid equation" error. I really don't know what I did wrong. Can anybody point out my mistake? Thanks.

\begin{array}{cc}1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\ 0&0&0&1&0\\0&0&0&0&1\\0&0&0&0&0\\0&0&0&0&0\end{arr ay}

\begin{array}{cc}1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\ 0&0&0&1&0\\0&0&0&0&1\\0&0&0&0&0\\end{array}" alt="\begin{array}{cc}1&0&0&0&0\\0&1&0&0&0\\0&0&1&0&0\\ 0&0&0&1&0\\0&0&0&0&1\\0&0&0&0&0\\end{array}" />