ode45 returning only its initial conditions
Ältere Kommentare anzeigen
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
Antworten (1)
Jan
am 25 Aug. 2013
0 Stimmen
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.
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!