Below is the code I use:
\begin{center}
\begin{eqnarray}
\[ E_{n} = \dfrac{1}{N} \sum_{m}^{}[x(m)w(n-m)]^{2}\]
\end{eqnarray}
\end{center}
However it produces many errors, and it does not give the equation a number. All equations before this were automatically assigned a number. However, this one does not have a number and produces many errors. The errors are:
Bad math environment delimiter. [ Missing \endgroup inserted.
...rac{1}{N} \sum_{m}^{}[x(m)w(n-m)]^{2}] Missing } inserted.
...rac{1}{N} \sum_{m}^{}[x(m)w(n-m)]^{2}] \begin{eqnarray} on input
line 344 ended by \end{equation*}. ...rac{1}{N}
\sum_{m}^{}[x(m)w(n-m)]^{2}]
Missing $ inserted. ...rac{1}{N} \sum_{m}^{}[x(m)w(n-m)]^{2}]
And many more like these. What am I doing wrong here?
\begin{eqnarray}
and\[
, both of which start math mode. Remove the\[
and\]
. But you shouldn't use eqnarray either for reasons stated here. You don't seem to using an array of equations, so just use\begin{equation}...\end{equation}
perhaps?\begin{center}
...\end{center}
doesn't do anything here but make the spacing worse. Remove that too.