Problems with ode4, ode5 and ode45
3 views (last 30 days)
Show older comments
I've an equation which works fine in high frequency with ode45. However if I decrease the frequency, ode45 starts to give me erroneous results. Ode4 and ode5 gives me correct result (error in order of 10^{-5} and lower) in both high(10^9 Hz) and low(10^5 Hz) frequency. If the equation runs for 1 cycle (linspace(0,2*pi/omega,tcount)), as the frequency decreases, I need more time steps. Since ode45 is adaptive and I cannot control the time spacing, except mentioning a particular relative and absolute tolerance (which I changed to -14 without any significant difference), I was wondering if there are any other options in odeset which I could avail.
0 Comments
Answers (0)
See Also
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!