I need to use \ref{} command with a list of figures. So, instead of using the command multiple times as follows:
Figures \ref{fig:1}, \ref{fig:2}, and \ref{fig:3}
%the output will be Figures 1,2 and 3.
I need to use it one time to refer to a list of figures, so the required output looks like Figures 1-3.