function f = g3function(x,a) f = a(1)*exp(-a(2)*x)+a(3)*exp(-((x-a(4))/a(5)).^2)+a(6)*exp(-((x-a(7))/a(8)).^2);