How to make a script to calculate the sum described

回答 (1 件)

ES
ES 2013 年 10 月 8 日

1 投票

sum(1:100)
or
100*(100+1)/2

1 件のコメント

Jan
Jan 2013 年 10 月 8 日
Gauss would like the 2nd method more.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

質問済み:

2013 年 10 月 8 日

コメント済み:

Jan
2013 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by