I have a problem in the table width, it is very small as shown below and I need it to fit in two column paper. Any help please?
\begin{table}[H]
\centering
\begin{tabular}{|r|r|r|r|}
\hline
& Class 1 & Class 2 & Class 3 \\
\hline
Class 1 & 0 & 0 & 262 \\
\hline
Class 2 & 0 & 0 & 295 \\
\hline
Class 3 & 0 & 0 & 320 \\
\hline
\end{tabular}
\caption{Confusion Matrix}
\label{tab:template}
\end{table}
Best Answer
You can use the
tabularx
package and use a width of\columnwidth
so your table will span the whole width of the column:You can also set the appropriate width for the columns manually: