% Integrates vector over given interval
% Meant to calculate distance traveled when given speed info

function [intVec] = integrateHemoSpeed(speedVec, minFrame, maxFrame)
    speedVecT = transpose(speedVec);
    
    intVec = trapz(speedVecT(minFrame:maxFrame,:));
    
    intVec = remove_nan(intVec);
end