Summation of Random Numbers
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alyx Kalleberg
am 13 Okt. 2019
Beantwortet: Walter Roberson
am 13 Okt. 2019
How would you go about writing a code to solve a summations of randomly generated intergers, say r= to an equation, until the sum is greater than a number, say x.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 13 Okt. 2019
I would use a while loop.
while summation <= x
%add a random integer to the summation
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!