Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to do a while loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have to combined a for loop and a while loop
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 20 Jan. 2014
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 Kommentare
Image Analyst
am 20 Jan. 2014
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?
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!