In my report, I would like to add a table and be able to refer to it in my text.
I did the following:
\begin{table}[ht]
\centering
\begin{tabular}{c | c | c }
\hline
Training Data Duration [s] & Maximum SIR [dB] & Maximum SDR [dB] \\ \hhline{|=|=|=|}
15 & 14.4353 & \textcolor[rgb]{1,0,0}{8.7172}\\ \hline
25 & 14.4015 & 8.7312 \\ \hline
35 & \textcolor[rgb]{1,0,0}{14.2806} & 8.8179 \\ \hline
45 & 14.4674 & 9.3875 \\ \hline
55 & 14.3881 & 9.2663 \\ \hline
65 & 14.3003 & 9.3346 \\ \hline
75 & \textcolor[rgb]{0,0.58,0}{14.6173} & \textcolor[rgb]{0,0.58,0}{9.4663} \\ \hline
85 & 14.5579 & 9.1584 \\ \hline
\hline
\label{tab:maxsirsdr}
\caption{Maximum SIR/SDR values for different training data durations.}
\end{tabular}
\end{table}
I use TeXnicCenter and the LaTeX -> PS -> PDF
mode with TeXLive. Without the table
environment, I get the PDF in a couple of seconds. Now it does not compile at all.
What can I do? If you need more info, please ask me! And I'm sorry for abusing LaTeX terminology, my LaTeX knowledge is very basic.
.log
file? Incidentally note the\label
command should be after\caption
tabular
environment