how do you fit data with a peak using a Gaussian curve? If there are two peaks but you only want to fit a curve within a specific range asked by the user, how do you fit a curve?
No products are associated with this question.
Do you have the curve fitting toolbox?
If so, cftool has a Gaussian option built in.
Or from the command line:
x = (-3:0.01:3)'; y = exp(-x.^2/2); yfit = fit(x,y,'gauss1');
0 Comments