Getting a vector which is calculated during an ode45 function to the main function
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!