Template matching in Matlab?

Hi Guys.
Do you all have any idea on performing template matching for face recognition using matlab?

Please advice. Thank you very much.

Best regards,
Tommy