How do I set constraints on curve fitting?
Show older comments
hello,
I have a set of data that I would like to fit with a double exponential function (type 'exp2'). However I have very few points at the beginning and sometimes the fitting is not done properly. See image below for illustration:

On the bottom graph the fitting performed by Matlab is according to me correct. On the top graph however the first points are ignored. I insist on the fact that I have used the SAME function to fit both sets of data (the 'exp2'). If you have a solution to my problem I would be very grateful.
1 Comment
Matt J
on 10 Dec 2014
What StartPoint are you using? Try one with a*b+c*d>0.
Answers (0)
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!