Latex Equation and bmatrix

latex

I'm trying to use official equation, and it's giving me some trouble. I have this equation of a simple matrix operation, and LaTeX isn't liking it. What's wrong with this statement?

\begin{equation}
$M=\begin{bmatrix}
V_{1,1} & . & . & V_{1,n}\\ 
. & . &  & \\   
. &  &.  & \\ 
 V_{m,1}&  &  & V_{m,n}
\end{bmatrix}$
\end{equation}

The error is:
! Display math should end with $$.

M
l.186 $M
=\begin{bmatrix}
? )

Best Answer

Delete the two dollar signs:

\begin{equation}
M=\begin{bmatrix}
V_{1,1} & . & . & V_{1,n}\\ 
. & . &  & \\   
. &  &.  & \\ 
 V_{m,1}&  &  & V_{m,n}
\end{bmatrix}
\end{equation}
Related Topic