If the template is in the same orientation and size as the image, then you can try normalized cross correlation. A demo is attached.
or the Computer Vision System Toolbox: http://www.mathworks.com/help/vision/ref/ocr.html#bt548t1-2_1
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!