Use ODE45 with a frequency span instead of time?
4 次查看(过去 30 天)
显示 更早的评论
I have 2 coupled differential equations. I'm trying to use ODE45, but it requires a time span (tspan).
Is there a way to use a frequency span instead, or perhaps another more suitable differential equation solver?
0 个评论
采纳的回答
Star Strider
2020-6-11
It does not require that the independent variable be time. It can be whatever your differential equation system requires. If your derivatives are with respect to frequency, use a frequency vector instead.
2 个评论
Star Strider
2020-6-11
The numeric ODE solvers all require initial conditions.
If you have data and you need to estimate the initial conditions (and possibly other parameters) to fit your differential equations to the data, that is relatively straightforward to do.
If your differential equations are relatively straightforward, you can use the Symbolic Math Toolbox to get an analytic solution (providing one exists). Those initial conditions can be symbolic.
更多回答(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!