I am trying to create a 5 x 13 table in which the contexts of each cell are aligned both vertically and horizontally. So far the contents of each cell are top aligned. I have tried to implement the solutions provided to similar questions asked on here but I dont seem to be having any luck. My code is as follows:
\begin{center}
\begin{table}
\centering
\captionof{table}{Example.} \label{tab:title}
\begin{tabular}{|c|c|c|c|c|}
\hline Iter. & $N$ & $\epsilon$ & $J = r_{f}$ & CPU (sec) \\[2pt]
\hline 0 & 7 & $9.71 \times 10^{-3}$ & 1.0125612 & 0.21 \\[2pt]
\hline 1 & 13 & $1.01 \times 10^{-3}$ & 1.0125873 & 0.13 \\[2pt]
\hline 2 & 16 & $8.74 \times 10^{-4}$ & 1.0126011 & 0.79 \\[2pt]
\hline 3 & 21 & $5.32 \times 10^{-4}$ & 1.0126056 & 1.03 \\[2pt]
\hline 4 & 30 & $3.21 \times 10^{-4}$ & 1.0126099 & 2.34 \\[2pt]
\hline 5 & 36 & $9.82 \times 10^{-5}$ & 1.0127022 & 1.64 \\[2pt]
\hline 6 & 45 & $5.19 \times 10^{-5}$ & 1.0127067 & 1.19 \\[2pt]
\hline 7 & 64 & $4.70 \times 10^{-5}$ & 1.0127143 & 2.15 \\[2pt]
\hline 8 & 80 & $7.57 \times 10^{-6}$ & 1.0127156 & 3.10 \\[2pt]
\hline 9 & 99 & $8.73 \times 10^{-6}$ & 1.0127174 & 6.56 \\[2pt]
\hline 10 & 165 & $9.80 \times 10^{-7}$ & 1.0127176 & 7.98 \\[2pt]
\hline & & & & 27.12 \\
\hline
\end{tabular}
\end{table}
\end{center}
I would be very grateful if someone could kindly advise where I might be going wrong in my implementation.
Many thanks
Bob.
I have updated my question with an image of the table rendered in TexStudio where it can be seen that the cell contents are aligned to the top of each cell as opposed to the centre of each cell.
booktabs
andsiunitx
to produce something like i.stack.imgur.com/RVctk.png, see gist.github.com/moewew/1eb8a0331be29ac9e878399ae0ef2e22