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