You have no exit criteria for your while loop, which means you are creating an infinite loop.
Do you even need a while loop? It doesn't sound like there are any repeat calculations in your task. Try using an if statement instead.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
此问题已关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!