function y = sumRows(A)
%SUMROWS Row sums of a matrix
%   y = sumRows(A) returns a column vector of the row sums of A.

[rows, cols] = size(A);
y = zeros(rows, 1);
for r = 1:rows
    for c = 1:cols
        a = A(r, c);
        y(r) = y(r) + a;
    end
end
