% integrates vector Vi
% Every element of Vo will be the sum of the
% previous elements of Vi
% Minas Spetsakis, March 2015

N = length(Vi);
Vo = zeros(N,1);

Vo(1) = Vi(1);
for i=2:N
    Vo(i) = Vo(i-1)+Vi(i);
end;
