You may want to double check a TeX tutorial about how tabular and array work. tabular
is a text environment, and then would require that you typeset its entries as math with manual $
. It looks like you really wanted array
, which is in math and typesets its entries as math without needing $
. The argument to either environment is the specification for each column. In your case, you have 1 column that you're centering, so {1}
should be {c}
, and then you wouldn't need \centering
. (Other common options instead of c
are l
and r
for left and right justified.) If you wanted more columns, then you would separate your columns with the &
(but don't use it if there's only one column).
As long as you are using amsmath, I would recommend the pmatrix
environment (the p stands for parentheses):
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{equation}
S=\begin{pmatrix}
\{B_{M,i}\}\\
\vdots\\
\{B_{1,i}\} \{B_{2,i}\} \dots \{B_{M,i}\}
\end{pmatrix}
\end{equation}
\end{document}
A few other things to note: {S}
is the same thing as S
, I've used \vdots
for vertical dots, and \dots
for the horizontal dots. You could consider if you want to space the \{B_{k,i}\}
out with \,
or \
or not.
{}
button). Thanks for the MWE.