How do I set constraints on curve fitting?

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

What StartPoint are you using? Try one with a*b+c*d>0.

Sign in to comment.

Answers (0)

Categories

Asked:

on 10 Dec 2014

Commented:

on 10 Dec 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!