Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to do a while loop
3 ビュー (過去 30 日間)
古いコメントを表示
I have to combined a for loop and a while loop
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2014 年 1 月 20 日
test=0;
while test==0
test=input('You are in a while loop. Press 1 to exit the loop and 0 to stay');
%your code
end
3 件のコメント
Image Analyst
2014 年 1 月 20 日
Well, why did you say "You are in a while loop" when you didn't even have any while loops at all. All you had were for loops. So why did you say that?
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!