Implement ode15s function in a discrete model
5 次查看(过去 30 天)
显示 更早的评论
How to implement the ode15s function in a discretized model?
In the continuous model it was quieter, as I found several examples. Now in the discretized model I can not find anything to help me. I emphasize that I am learning to program, so all help and the way that is explained to a lay person will be appreciated.
I can implement and compile by placing the template and specifying the step size. But I would like to apply this numerical solution to the model, just as it was done in the continuum. Any idea how to comoralize this process?
It follows two codes of the discretized model, both get the same results, except that the code_discret_1 is in state space format and the other is in systems format.
0 个评论
采纳的回答
Walter Roberson
2018-7-19
ode15s() and all the other ode* functions that have two numbers after 'ode' (e.g. ode45), are all variable timestep solvers, and all require continuous states. Some of them such as ode45 will, if necessary, go backwards and forwards in time in order to get the required precision.
For discrete states, you need to use a fixed step solver.
MATLAB does not officially provide fixed step solvers for calling from MATLAB, but they have provided a series of them available through https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-differential-equation-ode-solver-in-matlab-8-0-r2012b#answer_107643
5 个评论
Walter Roberson
2018-7-19
I have never heard of a Walter system; is that related to http://www.pnas.org/content/pnas/25/9/468.full.pdf ?
Anyhow, I recommend opening a new topic, as I do not have experience with rigid systems.
更多回答(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!