rite a for loop to add up every other number in a list called mylist, starting with the second number. store the total in eo_total in matlab

main.m
eo_total = 0;
for i = 2:2:length(mylist)
    eo_total = eo_total + mylist(i);
end
82 chars
5 lines

related categories

gistlibby LogSnag