Numerical integration "backwards" for ODE45
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Amirah Algethami
am 19 Dez. 2022
Kommentiert: Amirah Algethami
am 19 Dez. 2022
Hi There;
I should apply Backword integration for system of differential equation by ODE45 solver in Matlab, it seems easy for some people, I want an example to understand how to make Backword integration. your answer appreciated.
Best
AA
0 Kommentare
Akzeptierte Antwort
Torsten
am 19 Dez. 2022
fun = @(t,y) y;
tspan = [0 1];
y0 = 1;
[Tf,Yf] = ode45(fun,tspan,y0);
tspan = [1 0];
y0 = exp(1);
[Tb,Yb] = ode45(fun,tspan,y0);
plot(Tf,Yf,Tb,Yb)
Weitere Antworten (1)
Fabio Freschi
am 19 Dez. 2022
you may be interested to read the comments to this post
3 Kommentare
Fabio Freschi
am 19 Dez. 2022
@Torsten already reported an example. I still warn you to pay attention to integrate backwards because in some cases you may have numerica blowup
Siehe auch
Kategorien
Mehr zu Marine and Underwater Vehicles 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!