Nested loops for double summation

17 ビュー (過去 30 日間)
정진 박
정진 박 2022 年 4 月 12 日
回答済み: Voss 2022 年 4 月 12 日

回答 (1 件)

Voss
Voss 2022 年 4 月 12 日
total = 0;
for i = 1:10
for j = 5:20
total = total + i + j;
end
end

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by