How to make a script to calculate the sum described

1 vue (au cours des 30 derniers jours)
Geir
Geir le 8 Oct 2013
Commenté : Jan le 8 Oct 2013
100
i
i=1
[EDITED, Jan, formatted, please apply a proper formatting]

Réponses (1)

ES
ES le 8 Oct 2013
sum(1:100)
or
100*(100+1)/2
  1 commentaire
Jan
Jan le 8 Oct 2013
Gauss would like the 2nd method more.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by