From: Chad on
I am in need of some help. I am fitting Gaussian curves using the curve fitting toolbox. Once I fit the curve I get a x_0 centroid and a width. My goal is to fit the centroids of five different curves. I would like to fit the following and generate a slope and intercept. I am unable to do this is MATLAB.

x y upper_y lower_y
..511 108 109.4 107.3
1.275 280 283 280
.... ..... ..... .....
.... ..... .....

so on and so forth. Does anyone know how I can fit this with the upper and lower bound?