Matlab issue: Nested while loop paradox
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!