How to extract the internal time discretization of the solver PDEPE.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
For a give time discretization, How can I extract the internal time discretization of PDEPE?
This is easy with ODE45. But since it is internal to PDEPE, I would like to know if I can still set the internal discretization of the time as an output (i.e. not exactly tspan).
Thanks.
0 Kommentare
Antworten (1)
Torsten
am 12 Mai 2017
Use "OutputFcn" in the "options" structure.
"OutputFcn" will then be called after each successful time step.
Best wishes
Torsten.
2 Kommentare
Torsten
am 12 Mai 2017
Bearbeitet: Torsten
am 12 Mai 2017
"OutputFcn" is a function that you define and which is called after each successful time step of "pdepe". The actual time is passed to this function. So all you have to do is to save the value of this variable "t" to a file.
Best wishes
Torsten.
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!