フィルターのクリア

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

1 回表示 (過去 30 日間)
Entropie_13
Entropie_13 2018 年 1 月 18 日
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 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by