ode45 returning only its initial conditions
Show older comments
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
Answers (1)
Jan
on 25 Aug 2013
0 votes
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.
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!