Matlab issue: Nested while loop paradox
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!