Matlab gaussian fit. h should be a number between 0-1.