Can I add arguments to the odefun in ode45 integration?
1 次查看(过去 30 天)
显示 更早的评论
I am running a loop. During each iteration, I perform integration from a fixed initial state. To fulfill my objective, I need to change my state function(odefun) before the next iteration begins. In order to do that, I would need the following arguments to get my new state function for the next iteration: 1. a vector which is an output from the previous integration. 2. a number which comes from the previous integration.
How do I go about it?
回答(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!