How to break a code when conditions are met
Afficher commentaires plus anciens
So I have a code with 2 numerical methods - backward euler and Runge kutta. What I want to do is create a program that calculates both numerical methods for a simple ODE and then stops when the difference between the two methods is 10e-5. The RK method is set for 11 iterations. The backward euler should end at approx 7380 iterations. How can this be done ?
1 commentaire
DIP
le 8 Fév 2017
Réponses (1)
Catégories
En savoir plus sur Runge Kutta Methods dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!