Effacer les filtres
Effacer les filtres

Getting a vector which is calculated during an ode45 function to the main function

1 vue (au cours des 30 derniers jours)
Entropie_13
Entropie_13 le 18 Jan 2018
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

Réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by