So I wrote the following code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage[export]{adjustbox}
\begin{document}
\begin{table}[H]
\centering
\begin{tabular}{ccccccc}
\multicolumn{2}{c}{} &\multicolumn{5}{c}{Feature Vector of Samples} \\
\headerrow & & 0 & 1 & 2 & 3 & 4 \\
\multirow{5}{*}{\rotatebox{90}{Samples}}
& 0 & \(9.87*e^{-01}\) & \(8.67*e^{-17} \)& \(4.13*e^{-24}\) & \(1.16*e^{-17}\) & \(4.58*e^{-17}\) \\
& 1 & \(1.16*e^{-16}\) & \(9.99*e^{-01}\) & \(9.14*e^{-25}\) & \(3.63*e^{-22}\) & \(2.69*e^{-11}\) \\
& 2 & \(4.35*e^{-33}\) & \(7.85*e^{-34}\) & \(9.93*e^{-01}\) & \(3.74*e^{-04}\) & \(4.55*e^{-34}\) \\
& 3 & \(5.51*e^{-26}\)& \(5.13*e^{-31}\)& \(5.02*e^{-04}\) & \(9.99*e^{-01}\) & \(1.71*e^{-29}\) \\
& 4 & \(9.60*e^{-18}\) & \(2.21*e^{-07}\)& \(2.52*e^{-25}\)& \(4.64*e^{-20}\)& \(9.99*e^{-01}\)
\end{tabular}
\label{tbl:predan}
\end{table}
\end{document}
So I want to put some boxes around some variables in tables. It would be good when the color can be chosen too. something like the next Foto.
Thanks in advance :)





\headerrowcommand? – Bernard Mar 26 '21 at 14:39