Problems with ode4, ode5 and ode45

3 views (last 30 days)
mangolika bhattacharya
mangolika bhattacharya on 9 Jan 2017
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!