subfloat in latex
\usepackage{subfig}
\usepackage{graphicx}
%other part of code which compiles fine
\begin{figure}
\centering
\subfloat[][a]{\includegraphics{<figure1>}\label{<figure1>}}
\subfloat[][b]{\includegraphics{<figure2>}\label{<figure2>}}
\caption{Comparison of steady state results (a) x method (b) y method}
\label{steady_state}
\end{figure}
%remaining part