Implement ode15s function in a discrete model
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
GTA
am 19 Jul. 2018
Kommentiert: GTA
am 19 Jul. 2018
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 19 Jul. 2018
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 Kommentare
Walter Roberson
am 19 Jul. 2018
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!