필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to do a while loop

조회 수: 1 (최근 30일)
Riri
Riri 2014년 1월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
I have to combined a for loop and a while loop

답변 (1개)

Azzi Abdelmalek
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
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?
Riri
Riri 2014년 1월 21일
Nwm I just firgured it out thank you tho

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by