clear; clc;

data = [4 9 7 2 -1 6 3];
s = 0;
% for i = 1 : length(data)
%     s = s + data(i);
% end
% s

for item = data
    s = s + item;
end
s