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