I am using multirow to merge two rows of a table - I want the figure in that column to be vertically aligned.
MWE
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{multirow}
\begin{document}
\begin{figure} \begin{center}
\begin{tabular}{c c l}
\includegraphics[width=0.4\textwidth]{example-image-a} &
\includegraphics[width=0.4\textwidth]{example-image-a} & \multirow{2}{*}{ $\vcenter{\hbox{\includegraphics[width=0.1\textwidth,height=4cm]{example-grid-100x100pt}}}$}\\
\includegraphics[width=0.4\textwidth]{example-image-a} &
\includegraphics[width=0.4\textwidth]{example-image-a} &
\end{tabular}
\caption{default}
\label{fig:} \end{center}
\end{figure}
\end{document}
I have tried to adapt this answer with both the raisebox and vcenter options by using
\multirow{2}{*}{\raisebox{-0.5\height}{\includegraphics[width=0.1\textwidth,height=4cm]{example-grid-100x100pt}}}
and
\multirow{2}{*}{$\vcenter{\hbox{\includegraphics[width=0.1\textwidth,height=4cm]{example-grid-100x100pt}}}$}
as well as
\multirow{2}{*}{\includegraphics[width=0.1\textwidth,height=4cm,valign=m]{example-grid-100x100pt}}
with \usepackage[export]{adjustbox}
added to the preamble as suggested by this answer to a related question
without anything changing.