Getting a vector which is calculated during an ode45 function to the main function
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!