I just found out that there are these external functions (not built in the latest Matlab versions) that allow you to solve ODEs with fixed time steps (ode1, ... , ode5). I have tested them, and although they take several times longer than ode45 for the same quality result, they work for my problem.
How can I run a fixed time step NARX through ode45?
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to let a NARX work as a control predictor for a mass-spring-damper system which requires differential equation to be described (it is therefore solved with ode45). Such NARX must produce an output for each time step, so it is called inside the function that is solved by ode45.
The problem: ode45 works with variable time steps. Therefore the input delays of the NARX belong to inconsistent time positions with respect to the constant time step series used to train the NARX.
How can I solve (or workaround) this problem? Could delay differential equation solver help me? Is there a way to modify the built-in ode45 in the way I need?
Thank you in advance.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!