Fitting 2 data sets simultaneously with two different functions that have some shared parameters
1 view (last 30 days)
Show older comments
I have a global fit that I am trying to do. Where I have two data sets. dataset A and dataset B. Both A and B are vectors of size 85X1. I am trying to fit them using exponential fits. The two fit expressions are as follows:
fitA = a1*exp(-t/b1) + a2*exp(b2) + c
fitB = 1-(a1*exp(-t/b1) + a2*exp(b2) + c)
Is there a way to do such a global fit with the fit() function or lsqcurvefit()?
Thanks!
Joel
P.S. I have matlab v. 2013b
0 Comments
Answers (0)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox 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!