ode45 returning only its initial conditions
古いコメントを表示
Hi everyone,
I'm working on a model defined by a series of 9 ODEs, and have written a function to execute ode45 and run the simulation. The model function is defined by a subfunction.
Though I have specified a time interval for integration as 1:1:8, upon executing the function, the output is a 1x9 vector, rather than a 8x9 matrix. The vector contains the initial conditions for integration that I have previously defined.
It seems that ode45 is not being executed when it is called in the code. The overall function operates with no errors or warnings.
Any possible solutions?
Thanks, Andrew
回答 (1 件)
Jan
2013 年 8 月 25 日
0 投票
Without seeing the code, there is no real chance to guess the reason of the problem. You have described the intention of your program, and this intention has surely no bug. But the real implementation has one. So take the chance to edit the original question and add the relevant part of the code.
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!