Code covered by the BSD License  

Highlights from
Digital Image Correlation and Tracking

from Digital Image Correlation and Tracking by Christoph Eberl
Calculate displacement and strain from a series of images

gauss_twopk(x,xdata)
function F = gauss_twopk(x,xdata)
        F = (x(1)*exp((-(xdata-x(2)).^2)./(2.*x(3).^2))) + (x(4)*exp((-(xdata-x(5)).^2)./(2.*x(6).^2))) + x(7);

Contact us at files@mathworks.com