how to do summation

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 日

0 投票

sum(F(1:12) .* (H(1:12) - H(i)))

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

製品

タグ

質問済み:

2013 年 3 月 30 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by