Fitting 2 data sets simultaneously with two different functions that have some shared parameters

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 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

質問済み:

2019 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by