How to convert from a for loop to a while loop
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 29 Apr 2020
abood - which for loop do you want to convert to a while loop? All three?
Risposte (1)
Eva-Maria Weiss
il 30 Apr 2020
Modificato: Eva-Maria Weiss
il 30 Apr 2020
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 Commenti
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!