um it's hard to answer your question as you have not really given much information. It's like me asking why C++ can give me answer but pearl can't. Matlab is a programing language. What algorithm are you using to fit the points, in matlab. What is sigmaplot10?
My guess is that the algorithm you are using in matlab is messed up slightly. You shouldn't blame the language for code written in it.
Aaron
Thanks for your reply. Yes I realized that there isn't too much of info in my first post but thanks to have reply anyway. I have made a bit of research and found that sigmaplot (analysis software) is using the Marquardt-Levenberg algorithm to find the
coefficients (parameters) of the independent variable(s) that give the “best fit”
between the equation and the data. (Shrager, R.I. (1970). Regression with Linear Constraints: An Extension of the Magnified Diagonal Method. Journal of the Association for Computing Machinery, 17, 446-452.).
So now my question is how do I found out which algorithm Matlab is using? And how can I adapt it so it would use this algorithm?
Many thanks,
Jean-Seb
"Aaron Callard" <no.t...@hotmail.com> wrote in message <gkl9ps$rd2$1...@fred.mathworks.com>...
Hi, I think my function exp2fit could do it very well:
http://www.mathworks.com/matlabcentral/fileexchange/21959
,but sometimes with rough data you need optimization toolbox to access lsqcurvefit (which is optionally post-used in my function). If you have your own "lsqcurvefit" (look at file exchange) maby it will do it equally well?
Also, sum of two exponentials have a lot of functional freedom to be oscillating, or decaying, when the coefficients are complex. If there is "swings" (with additionally large noise) in your data it may fit it to a damped harmonic oscillating function.
/Per
I was wondering if you have figured out a way of doing a double exponential equation fit in matlab
Thanks
"Jean-Sebastien" <newsr...@mathworks.com> wrote in message <gkl7vl$nb0$1...@fred.mathworks.com>...