How to convert from a for loop to a while loop
조회 수: 2 (최근 30일)
이전 댓글 표시
i got stuck how to change this code from for loop to a while loop ,may someone help![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288419/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288419/image.png)
댓글 수: 4
답변 (1개)
Eva-Maria Weiss
2020년 4월 30일
편집: Eva-Maria Weiss
2020년 4월 30일
j = 1
while j <= 59
COPOALL(j,1) = COPOALL(j,1) + AllstudentsResult(j+3,i);
j = j + 1;
end
Maybe something like that? The same for the other for loops....
But why to replace? :)
Good luck!!!
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!