I need an image with five subfigures arranged this way.

I have tried to use subfig and floatrow, but I haven't been able to place the figures as I need them
I need an image with five subfigures arranged this way.

I have tried to use subfig and floatrow, but I haven't been able to place the figures as I need them
You could use a combination of minipages and subfigure environments (from the subcaption package); a little example:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\begin{minipage}{.33\textwidth}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=.7\linewidth]{name1}
\caption{First subfigure}
\label{fig:sub1}
\end{subfigure}\\[1ex]
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=.7\linewidth]{name2}
\caption{Second subfigure}
\label{fig:sub2}
\end{subfigure}
\end{minipage}%
\begin{minipage}{.33\textwidth}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=.7\linewidth]{name3}
\caption{Third subfigure}
\label{fig:sub3}
\end{subfigure}
\end{minipage}%
\begin{minipage}{.33\textwidth}
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=.7\linewidth]{name4}
\caption{Fourth subfigure}
\label{fig:sub4}
\end{subfigure}\\[1ex]
\begin{subfigure}{\linewidth}
\centering
\includegraphics[width=.7\linewidth]{name5}
\caption{Fifth subfigure}
\label{fig:sub5}
\end{subfigure}
\end{minipage}
\caption{Five subfigures}
\label{fig:test}
\end{figure}
\end{document}

I used the demo option for the graphicx package to replace the actual figures with black rectangles and make my code compilable for everyone; do not use that option in your actual code.
You could use three minipages next to each other:

\documentclass{article}
\usepackage{caption,subcaption}
\begin{document}
\begin{figure}
\centering
\begin{minipage}{0.3\textwidth}
\subcaptionbox{A}{\rule{3cm}{3.5cm}}\\[1ex]
\subcaptionbox{B}{\rule{3cm}{3.5cm}}
\end{minipage}%
\begin{minipage}{0.3\textwidth}
\subcaptionbox{C}{\rule{3cm}{3.5cm}}
\end{minipage}%
\begin{minipage}{0.3\textwidth}
\subcaptionbox{D}{\rule{3cm}{3.5cm}}\\[1ex]
\subcaptionbox{E}{\rule{3cm}{3.5cm}}
\end{minipage}
\caption{Pictures!}
\end{figure}
\end{document}
% after the first and second \end{minipage} commands to prevent undesired blank spaces.
– Gonzalo Medina
Nov 18 '11 at 02:25
\\[1ex] from your answer to get nicer vertical spacing.
– Jake
Nov 18 '11 at 02:46
Using the subfig package you can use tabulars to arrange the images:

\documentclass{article}
\usepackage{subfig}% http://ctan.org/pkg/subfig
\begin{document}
\begin{figure}[ht]
\begin{tabular}{c}
\subfloat[subfigure 1]{\rule{100pt}{50pt}} \\
\subfloat[subfigure 2]{\rule{100pt}{50pt}}
\end{tabular} \hfill
\begin{tabular}[m]{c}
\subfloat[subfigure 3]{\rule{100pt}{50pt}}
\end{tabular} \hfill
\begin{tabular}{c}
\subfloat[subfigure 4]{\rule{100pt}{50pt}} \\
\subfloat[subfigure 5]{\rule{100pt}{50pt}}
\end{tabular}
\caption{bla bla bla bla bla bla}
\end{figure}
\end{document}
Vertical alignment across the subfigures is obtained using the optional tabular parameter [m] for middle. Using \hfill as suggested will push the columns of subfigures to the outer edges of the text block. If you want these columns evenly spaces, use \null\hfill on the left of the first column and \hfill\null on the right of the last column. Alternatively, a fixed spacing using \hspace{<len>} is also possible, where <len> is any recognized TeX length.
tabular column specification necessarily adds a little horizontal space of \tabcolsep between columns. If you want this removed (for whatever reason), you can use a {@{}c@{}} column specification instead of {c}.
memoir provides its own \subbottom and \subtop sub-figure tools.
– Werner
Feb 06 '14 at 15:13
\subbottom inside a tabular? Yours seems like the least verbose solution.
– Neil G
Feb 07 '14 at 00:21