access to element of variable in ode
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
function V=wffun(t,i)
[t,i] = ode15s(@wffun,tspan,i0)
ode return Matrix with length of k. how can i access element of t and i while ode is runing? in function wffun i use t(k-1) and t(k)
0 Kommentare
Antworten (1)
Steven Lord
am 17 Sep. 2018
If the differential equation you're solving includes a reference to the value of a component of the solution at an earlier time, you don't have an ordinary differential equation. Use a delay differential equation solver instead.
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!