I assume that you need the p
columns and can't simply replace them with c
columns.
Use the array
package, and add >{\centering}
prior to your p
columns. Take notice that the \\
table row separator is now replaced with \tabularnewline
.
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|>{\centering}p{2.5cm} |>{\centering}p{2.5cm} |>{\centering}p{6cm}|}
\hline
\multicolumn{3}{|c|}{TDOA estimation and sampling frequency} \tabularnewline
\hline
Actual TDOA[PS]&Estimated TDOA[PS]&Sampling frequency[GHz]\tabularnewline
\hline
$1-10$&High&High\tabularnewline
\hline
$1-5$&Medium/High&Low\tabularnewline
\hline
$2$-$10$&Medium&Low\tabularnewline
\hline
$20-50$&Medium/Low&Low\tabularnewline
\hline
$1-10$&Low&Low\tabularnewline
\hline
$1-30$&Low&Low\tabularnewline
\hline
\end{tabular}
\caption{TDOA estimation and sampling frequency using Lagrange interpolation}
\label{table:1}
\end{table}
\end{document}
Which outputs
I also took the liberty to change your formatting a bit:
- Use
booktabs
for the rules (\toprule
, \midrule
and \bottomrule
)
- Table captions go above the table, figure captions go below the figure
- Added the
caption
package for better spacing and formatting of the caption.
- Removed the
multicolumn
as it seems as an unnecessary element in your table, your caption should tell the reader what the table is all about.
- When typesetting intervals as
number dash number
you should use the en dash --
, and not the inline math environment $$
, as it means number minus number
.
MWE:
\documentclass{article}
\usepackage{array,booktabs}
\usepackage[hang,bf,small]{caption}
\begin{document}
\begin{table}[h!]
\centering
\caption{TDOA estimation and sampling frequency using Lagrange interpolation}
\label{table:1}
\begin{tabular}{>{\centering}p{2.5cm} >{\centering}p{2.5cm} >{\centering}p{6cm}}
\toprule
% \multicolumn{3}{c}{TDOA estimation and sampling frequency} \tabularnewline
% \midrule
Actual TDOA[PS]&Estimated TDOA[PS]&Sampling frequency[GHz]\tabularnewline
\midrule
1--10 &High&High\tabularnewline
1--5 &Medium/High&Low\tabularnewline
2--10 &Medium&Low\tabularnewline
20--50&Medium/Low&Low\tabularnewline
1--10 &Low&Low\tabularnewline
1--30 &Low&Low\tabularnewline
\bottomrule
\end{tabular}
\end{table}
\end{document}
which outputs