function V = integrate(t, A)
  V(1) = 0;
  
  for i = 2 : length(A)
    dt = t(i) - t(i-1); 
    dv = dt * A(i);
    V(i) = V(i-1) + dv;
  endfor

  V = V';
  
endfunction
