MATLAB Answers

Tudor
0

how to do summation

Asked by Tudor
on 30 Mar 2013

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.

  0 Comments

Tags

Products

1 Answer

Answer by Walter Roberson
on 30 Mar 2013
sum(F(1:12) .* (H(1:12) - H(i)))

  0 Comments


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!