Nested loops for double summation

조회 수: 16 (최근 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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by