From for to While loop
이전 댓글 표시
Hello! Could someone please help me to convert this for loop to a while loop?
채택된 답변
추가 답변 (1개)
Steve Eddins
2020년 11월 24일
Here is one way to convert a typical MATLAB for loop to a while loop:
for i = 1:N
...
end
i = 1;
while i <= N
...
i = i+1;
end
댓글 수: 2
Steve Eddins
2020년 11월 24일
Can you show us specifically what you tried?
Rik
2020년 11월 24일
Now deleted comment:
I tried that, but I couldn't get the whole matrix to show.
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!