Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Tudor

Tags

Products

1 Answer

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

0 Comments

Walter Roberson

Contact us