[Tex/LaTex] Figure caption side by side of the last subfigure

captionssidecapsubfloats

I have a figure consisting of 4 subfigures and a quite long caption. What I would like to do is to have the first three subfigures in the first row and the last one in the second row while the figure's caption is placed side by side of the last subfigure. The objective is economizing the number of pages in my thesis. I saw that the side position for the caption might be possible for a single figure using the "floatrow" package, but in may case, I am using the subfigure package too. I would appreciate it if anyone could help me?
Here is an example of my relative part of code and the output I would like to have…

\begin{figure}[htbp]
   \centering
   \begin{subfigure}{.45\textwidth}
     \centering
     \includegraphics[width=0.5\linewidth]{./chapter5/Figures/prad31.png}
     \caption{}
     \label{fig:prad31}
  \end{subfigure}
  \begin{subfigure}{.45\textwidth}
     \centering
     \includegraphics[width=0.5\linewidth]{./chapter5/Figures/prad32.png}
     \caption{}
     \label{fig:prad32}
 \end{subfigure}
 \begin{subfigure}{.45\textwidth}
    \centering
    \includegraphics[width=0.5\linewidth]{./chapter5/Figures/prad33.png}
    \caption{}
    \label{fig:prad33}
 \end{subfigure}
 \begin{subfigure}{.45\textwidth}
    \centering
    \includegraphics[width=0.5\linewidth]{./chapter5/Figures/prad34.png}
    \caption{}
    \label{fig:prad34}
\end{subfigure}
\caption{Impact of parameter $D$. ....: (a) 11. (b) 12. (c) 13. (d) 14.}
\label{fig:prad3}
\end{figure}

The desired output shape

Best Answer

Once again, minipages are the solution.

eliSubfloatCaption

\documentclass{article}
\usepackage{mwe}
\usepackage{subcaption}
\begin{document}
\begin{figure}
    \centering
    \begin{subfigure}{.3\textwidth}
        \centering
        \includegraphics[width=\linewidth]{example-image}
        \caption{}
        \label{fig:prad31}
    \end{subfigure}\hfill
    \begin{subfigure}{.3\textwidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-a}
        \caption{}
        \label{fig:prad32}
    \end{subfigure}\hfill
    \begin{subfigure}{.3\textwidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-b}
        \caption{}
        \label{fig:prad33}
    \end{subfigure}\medbreak
    \begin{subfigure}{.3\textwidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-c}
        \caption{}
        \label{fig:prad34}
    \end{subfigure}\hfill
    \begin{minipage}{.6\linewidth}
    \caption{Impact of parameter $D$.  ....: (a) 11.  (b) 12.  (c) 13.  (d) 14.}
\end{minipage}
    \label{fig:prad3}
\end{figure}
\end{document}
Related Question