Biexponential fitting (non-linear regression)on Matlab

조회 수: 7 (최근 30일)
Ashley Richardson
Ashley Richardson 2017년 3월 22일
댓글: Ashley Richardson 2017년 3월 22일
Hi,
I have a problem whereby I need to fit a biexponential model to some data. I'm quite new to Matlab and the code is currently beyond my skill set.
The equations I need to complete are below, any help would be greatly appreciated. The full reference of the paper is: Maciejewski, H., Bourdin, M., Lacour, J. R., Denis, C., Moyen, B., & Messonnier, L. (2013). Lactate accumulation in response to supramaximal exercise in rowers. Scandinavian journal of medicine & science in sports, 23(5), 585-592.
Regards,
Ashley
  댓글 수: 1
Rik
Rik 2017년 3월 22일
Just a hint: try to reduce the content of the paper to the bare minimum, otherwise people may give this link, instead of ignoring the unnecessary details.

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

답변 (1개)

Rik
Rik 2017년 3월 22일
So you have a list of (La,t) combinations? With fittype you can tell Matlab what function it should fit to.
La0=La(t==0);
ft = fittype(sprintf('%e+A1*(1-exp(-gamma1*t))+A2*(1-exp(-gamma2*t))',La0),...
'independent','t','dependent', 'La' );
opts = fitoptions( 'Method', 'NonlinearLeastSquares' );
opts.Display = 'Off';
opts.Lower = [0 0 0 0];%lower bounds (A1, gamma1, A2, gamma2)
opts.StartPoint = [1 1 1 1];
[fitresult, gof] = fit( t, La, ft, opts );
PS I expect you will need the curve fitting toolbox to use these functions
PPS I expect there is a better way to tell Matlab to treat La0 as a value from the workspace, but this will work. Maybe generating an anonymous function would be more elegant.
  댓글 수: 1
Ashley Richardson
Ashley Richardson 2017년 3월 22일
Thanks for your help Rik,
Yes we have a list of (La,t) combinations. I don't have the curve fitting toolbox currently, but will work through your solution and try on the free trial of the toolbox (before purchase)if it doesn't work on the standard licence.

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

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by