How to convert from a for loop to a while loop
1 次查看(过去 30 天)
显示 更早的评论
i got stuck how to change this code from for loop to a while loop ,may someone help
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!