Vertical alignment of subfigures LATEX

Veronika D picture Veronika D · Feb 24, 2010 · Viewed 87.7k times · Source

I am working on my thesis and I am struggling with placing 2 images next to each other, so that the second image would be centered vertically along the first one. I was also trying to use subfigure instead of subfloat but neither of them works.

This is how it looks alt text http://img51.imageshack.us/img51/1174/screenshot20100224at712.png

and my code is:

\begin{figure}[H]
\centering  \subfloat[H][sparse($\mathbf{A}$)]{\includegraphics[width=0.28\textwidth]{sparsesmall} \label{sparse}}
    \subfloat[H][full($\mathbf{A}$)]{\includegraphics[width=0.55\textwidth]{fullsmall}\label{full}}
  \caption{Representation of $\mathbf{A}$ in MATLAB}
  \label{schematic}
\end{figure}

Any suggestions to make it look better than now? Thx

Answer

krashalot picture krashalot · Jun 23, 2010

You can also use \raisebox{x}{\includegraphics[...]{...}} where x is negative to shift it downwards and positive to shift upwards.