Nested loops for double summation

回答 (1 件)

Voss
Voss 2022 年 4 月 12 日

1 投票

total = 0;
for i = 1:10
for j = 5:20
total = total + i + j;
end
end

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2022 年 4 月 12 日

回答済み:

2022 年 4 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by