필터 지우기
필터 지우기

Other result accompanying fitted data

조회 수: 1 (최근 30일)
Matterazzi
Matterazzi 2023년 1월 12일
댓글: Matterazzi 2023년 1월 14일
Hi,
In this thread Monod kinetics and curve fitting - MATLAB Answers - MATLAB Central (mathworks.com), two differential equation are integrated and fitted to experimental data and all is okay. The first ode computed for:
S = Sv(:,1);
How best can I report the accompanying values obtained from the other ode to which there is no experimental data, i.e.,
S = Sv(:,2);
Thank you in advance.

채택된 답변

Star Strider
Star Strider 2023년 1월 13일
I am pleased that you found my code helpful!
The code fits only one vector, so it only has one output. To get all the results, the easiest way would be to copy the differential equation function, and in the second version of it (with a slightly different name), set:
S = Sv;
and then run it with the fitted parameters. Use a different ‘tspan’ as well, with a higher resolution to get a smoother curve (use linspace to create it), if desired. Another option would be to save it and the fitted parameters to a .mat file.
.
  댓글 수: 3
Star Strider
Star Strider 2023년 1월 13일
As always, my pleasure!
My apologies for not seeing this yesterday. I was away for several hours and was not as careful as I usually am about perusing Answers when I returned. Thank you for bringing it to my attention.
Matterazzi
Matterazzi 2023년 1월 14일
I am having one other query about this problem. I have asked the question here: lsqcurvefit: Function value and YDATA sizes are not equal. - MATLAB Answers - MATLAB Central (mathworks.com). Again, your knowledgeable intervention is highly appreciated.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by