Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how to loop ?

1 Ansicht (letzte 30 Tage)
Nx mathlab
Nx mathlab am 4 Feb. 2022
Geschlossen: Stephen23 am 4 Feb. 2022
  1 Kommentar
Image Analyst
Image Analyst am 4 Feb. 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

Antworten (1)

KSSV
KSSV am 4 Feb. 2022
% Demo example
thesum = 0 ;
for i = 1:10
thesum = thesum + i ;
end

Diese Frage ist geschlossen.

Tags

Produkte


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by