I am trying to create a table such as the one presented here, but the text within the first two columns should be centered vertically. However, I am not able to achieve it. What am I doing wrong? I have a warning of "bad \vbox", which I guess its causing the problem, but I do not know how to solve it.
The MWE:
\documentclass[
ngerman,
accentcolor=9c,% Farbe für Hervorhebungen auf Basis der Deklarationen in den
type=intern,
marginpar=false
]{tudapub}
\usepackage[english, main=ngerman]{babel}
\usepackage[autostyle]{csquotes}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{mwe}
\begin{document}
\begin{table}[!h]
\centering
\begin{tabular}{ccccccc}
\toprule
&%
& Central Layer%
& \multicolumn{4}{c}{Top Layer}%
\\
\cmidrule(lr){3-3}
\cmidrule(lr){4-7}
&%
& X = 0 \& Z = -2b%
& X = 0 \& Z = 0%
& X = 0 \& Z = 2b%
& X = 0 \& Z = -2b%
& X = ann \& Z = 0%
\\%
\midrule
\multirow{2}{*}{\rotatebox[origin=c]{90}{Resonance frequency, $f_\mathrm{0}$ = 81.3 GHz}}%
& \rotatebox[origin=c]{90}{E-field}%
& \includegraphics[width=3cm,height=4cm]{example-image}%
& 2%
& 3%
& 4%
& 5%
\\%
&\rotatebox[origin=c]{90}{H-field}%
& \includegraphics[width=3cm,height=4cm]{example-image}%
& 2%
& 3%
& 4%
& 5%
\\%
\bottomrule
\end{tabular}
\end{table}
\end{document}
valign=c
to the options of\includegraphics
and place\usepackage[export]{adjustbox}
in the preamble of the document.