How can I use an ode45 solution in matlab curve fitting toolbox?

조회 수: 6 (최근 30일)
I'm a bit new to Matlab and am unsure how to use my code output in the curve fitting toolbox. I have code that uses lsqcurvefit and an ode45 solver to best fit a solution to a differential equation to data while finding the best parameters. I know how to plot the solution give by ode45, but I'm unsure of how to save or hold this solution in such a way that I can use it in Matlab Curve Fitting Toolbox.
  댓글 수: 1
Torsten
Torsten 2019년 8월 22일
You can couple the curve fitting toolbox and ode45 in the same way as you did it for lsqcurvefit and ode45, namely by defining the model function as a function (from which you can then call ode45).

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

채택된 답변

Anmol Dhiman
Anmol Dhiman 2019년 8월 29일
The output of the isqcurvefit can be stored in the variables. You can use these variables in the Curve Fitting Toolbox. It would be better for understanding if you share the code so the exact problem can be resolved.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by