Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to do a while loop

3 visualizzazioni (ultimi 30 giorni)
Riri
Riri il 20 Gen 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I have to combined a for loop and a while loop

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 20 Gen 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 Commenti
Image Analyst
Image Analyst il 20 Gen 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?
Riri
Riri il 21 Gen 2014
Nwm I just firgured it out thank you tho

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by