how to loop ?

1 件のコメント

Image Analyst
Image Analyst 2022 年 2 月 4 日
Are you asking us to do your homework for you?
Did you even try a for loop like it said to use? If not, why not?
theSum = 0;
for x = 0 : 20
% code
end

回答 (1 件)

KSSV
KSSV 2022 年 2 月 4 日

0 投票

% Demo example
thesum = 0 ;
for i = 1:10
thesum = thesum + i ;
end

この質問は閉じられています。

製品

リリース

R2021b

タグ

質問済み:

2022 年 2 月 4 日

閉鎖済み:

2022 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by