This question already has an answer here:

This script:

See Fig. \ref{fig:exa}
  \subfloat[example a]{
  \subfloat[example b]{

renders output

enter image description here

How can I format the reference to subfloat as "Fig. 1(a)".

marked as duplicate by David Carlisle, leandriis, Community Apr 6 at 21:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.