Problems with ode4, ode5 and ode45
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!