Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to do a while loop

1 visualización (últimos 30 días)
Riri
Riri el 20 de En. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have to combined a for loop and a while loop

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 20 de En. de 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 comentarios
Image Analyst
Image Analyst el 20 de En. de 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 el 21 de En. de 2014
Nwm I just firgured it out thank you tho

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by