how to loop ?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens

1 commentaire
Image Analyst
le 4 Fév 2022
Are you asking us to do your homework for you?
Did you even try a for loop like it said to use? If not, why not?
theSum = 0;
for x = 0 : 20
% code
end
Réponses (1)
KSSV
le 4 Fév 2022
% Demo example
thesum = 0 ;
for i = 1:10
thesum = thesum + i ;
end
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!