Getting a vector which is calculated during an ode45 function to the main function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I access an ODE by [z,x]=ode45(@(z,x) ODE_file(z,x,p), z, x0) ; For each step along the z-axis a variable Ri is calculated, because its needed to calculate the x. I would like to get every value of Ri in an output vector Routput of length(z), which I can use after leaving ode45. I could manage to simply define Routput within ODE_file but I couldnt install a counting variable a long the z-axis for the column of Routput. It just remained at value 1, so every value was put to Routput(1).
Does anybody has an idea how to proceed? Best, Dennis
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!