Monday, October 15, 2012

Latex - diagbox

In order to make a box like below, the top left cell with properties names for column and row respectively, you should adding the following lines:

\usepackage{diagbox}

..


\begin{table}[h]
\centering
\begin{tabular}{|l|c|c|c|c|}\hline
\diagbox{Edge}{Node} & Subspace & Hankelet & Euclidean & Null \\
\hline
Subspace & 2, 1, 2, 1, 2 & 3, 2, 1, 1, 0 & 2, 2, 1, 0, 0 & 2, 2, 1, 0, 0 \\
\hline
Hankelet   & 0, 2, 2, 1, 2 & 0 & 0 & 0 \\
\hline
Euclidean & 5, 3, 5, 5, 5 & 9 & 9 & 9 \\
\hline
Null            & 0, 2, 0, 1, 2 & 7 & 9 & / \\
\hline
\end{tabular}
\caption{Complete edge/node affinity matrix comparision. }
\label{tb:edgeNodeAffCom}
\end{table}




\

No comments:

Post a Comment

prettify