Matlab issue: Nested while loop paradox
Afficher commentaires plus anciens
I have an issue where I need to calculate x1, and keep calculating x1 until either the iterations reaches the desired number of iterations OR the approximate error in %(epsilon) is less than E(user defined tolerance in %).
My problem is that in order to calculate epsilon I must have the x1 value, but in order for the x1 value equation to be performed it must have the epsilon value to know when to end the while loop, so it's like there is a paradox. Any suggestions on how to solve this?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements 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!