Parameters obtained using lsqcurvefit results in complex numbers.
2 次查看(过去 30 天)
显示 更早的评论
Hi. I tried to fit simultaneous ODE using lsqcurvefit. Code works well and provide parameters. But parameters are coming as complex number. In my case parameters must be real number. How to restrict parameters to real numbers using lsqcurvefit?
7 个评论
Torsten
2019-7-3
But note that by this trick, the results of your ODEs might have changed compared to the original ODE without the abs().
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!