Dear All,

 Ni=[8 46 26 106]

N=∑Ni

I want to make this summation step by step in a loop in matlab, just like the basic code below

N(1)=8

N(2)=46

N(3)=26

N(4)=106

FOR I=1 TO 4

TOTAL=TOTAL+N(I)

END

If you help me, I'd be grateful.

Similar questions and discussions