Biexponential fit help?

조회 수: 49(최근 30일)
Vartika Kumar
Vartika Kumar 2021년 7월 20일
답변: Swetha Polemoni 2021년 7월 23일
So I generated a decay of some data using this code, and the decay works! But now I am trying to fit it into a biexponential fit. I have this code, but it is not working for some reason. Does anybody know what I should do?
Decay code (works):
Biexponential fit code (does not work):
ft = fittype('exp2');
ft(a,b,t1,t2,x) = a*exp(b*x) + t1*exp(t2*x);


Swetha Polemoni
Swetha Polemoni 2021년 7월 23일
The following answer might help you.

Community Treasure Hunt

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

Start Hunting!

Translated by