Question: Fitting Imported data to a Gaussian distribution

I several peaks from emission spectra which I am trying to fit wit a Gaussian distribution. 

y = y_0 + A*exp[-{(x-x_0)/(width)}^2

 

The problem I am running into is I am getting fits which are wrong.  Maple returns:

fit_658 := 1.+1.*exp(.50000000000000*(z-1.)^2)

The correct answer is:

-7e05+2.7e06*exp(((z-656.1)/9)^2)

Also, I am interested in finding the deviation in the parameters which are found.

Please Wait...