function y = sump(x)
%SUMP Sum of the positive elements of a vector
%   y = sump(x) returns the sum of the positive elements of the vector x.

y = 0;
for i = 1:numel(x)
    xi = x(i);
    if xi > 0
        y = y + x(i);
    end
end


