Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to do summation

조회 수: 1 (최근 30일)
Tudor
Tudor 2013년 3월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello I just starded using matlab for my disertation (I used it before but nothing very advanced). I am trying to do this sumation and I can't find the right way this is how it is written:
OTM(i) = sum(where j= from i to 12) F(j)*(H(j)-H(i));
I would realy apreciate this.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 30일
sum(F(1:12) .* (H(1:12) - H(i)))

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by