I found this code here since it's exactly what I need to use, but also I need a caption under both of them. There is an example for a subcaption but that's not it. I simply tried to add the caption command but it doesn't work. Can someone tell me how to modify it? Thanks.
\begin{center}
\resizebox{1.0\textwidth}{!}{
\includegraphics[height=3cm]{pic1}
% \caption{Picture 1}
\label{fig:pic1}
\quad
\includegraphics[height=3cm]{pic2}
% \caption{Picture 2}
\label{fig:pic2}
}
\end{center}
