필터 지우기
필터 지우기

how to use output as input in same code

조회 수: 2 (최근 30일)
GAURAV DHADSE
GAURAV DHADSE 2019년 9월 17일
댓글: GAURAV DHADSE 2019년 9월 17일
h = 2
for I = 1:15
E = 0
for el = 1:20
M = 1 +h
E = E + M
end
end
how can I use the new value of E for each iteration?
  댓글 수: 5
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 9월 17일
편집: KALYAN ACHARJYA 2019년 9월 17일
h=2
E=0
for ...
for ...
....
E=E+M % Update E
end
end
Role of I loop ??
GAURAV DHADSE
GAURAV DHADSE 2019년 9월 17일
Dear Walter sir, thanks for the answer, now my code is running properly. Thank you everyone

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by