Matlab issue: Nested while loop paradox
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!