How to solve differential equation with variable input parameters
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Swagato Das
am 29 Jun. 2017
Bearbeitet: Torsten
am 29 Jun. 2017
How to solve differential equation: zdot = (w*v*z)+1. where w=constant, v= velocity array of size 10, z is the initial condition=0. The solution for the first step is the z value for the next step.
0 Kommentare
Akzeptierte Antwort
Torsten
am 29 Jun. 2017
z0=0
z1=z0+dt*(w*v1*z1+1) -> z1=(z0+dt)/(1-dt*w*v1)
z2=z1+dt*(w*v2*z2+1) -> z2=(z1+dt)/(1-dt*w*v2)
...
In general:
Use the recursion
z(i+1)=(z(i)+dt)/(1-dt*w*v(i+1)) (i=1,...,9)
with
z(1)=0
Best wishes
Torsten.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!