How can I create a modified curve fitting function?

조회 수: 2 (최근 30일)
Christian
Christian 2017년 3월 19일
댓글: Sung YunSing 2021년 8월 18일
Hi,
i want to fit a recovery curve of my experiment to the following expression:
F(t)=k*exp(-D/2t)[I0(D/2t)+I1(D/2t)]
where I0 and I1 are the modified Bessel fundtions of the first kind of zero and first order. I want to determine D and k.
Is there any simple solution for this problem?
Thanks for helping
  댓글 수: 5
Christian
Christian 2017년 3월 19일
Okay, thank you. I'll try that.
Star Strider
Star Strider 2017년 3월 19일
My pleasure.
If you have problems, post your code. We can help.

댓글을 달려면 로그인하십시오.

답변 (2개)

John D'Errico
John D'Errico 2017년 3월 19일
편집: John D'Errico 2017년 3월 19일
Yes. Of course it is possible to do this. What toolbox do you have available? It sounds like the curve fitting TB is what you have. READ THE HELP. Look at the examples provided.
You said modified first kind Bessel, so you would use besseli. I'll get you started:
I0 = @(z) besseli(0,z);
I1 = @(z) besseli(1,z);
F = @(P,t) P(1)*exp(-P(2)/2*t).*(I0(P(2)/2*t)+I1(P(2)/2*t));
The curve fitting toolbox should be able to use this, as well as nlinfit and lsqcurvefit.
Note that I made the assumption that D/2t should be interpreted as (D/2)*t, NOT as D/(2*t).
  댓글 수: 3
Christian
Christian 2017년 3월 20일
I think the fitting function is okay. Maybe the results are so confusing because the upper and lower limits of the Parameters are not defined correctly?
Sung YunSing
Sung YunSing 2021년 8월 18일
Hi just want to mention that if you were working at FRAP, maybe D/(2*t) is more conform to the origin FRAP equation.

댓글을 달려면 로그인하십시오.


Christian
Christian 2017년 3월 20일
I've tried this now.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by