v = [1, 2, 3, 4, 6, 8];l = length(v)for i = 1 : 2 : l (?) som = sum + v(i);end
I don't know how to increse 'i' to create the sum of the two elements of the vector, the solution will be: som = [3, 7, 14]
sum
v = [1, 2, 3, 4, 6, 8];l = length(v)for i = 1 : 2 : l (?) som = sum + v(i);end
Best Answer