format long g
v1 = [1610759986514 1610759986549 1610759986583 1610759986618 ]
v2 = [1610759986540 1610759986589]
interp1(v1, 1:length(v1), v2, 'nearest', 'extrap')
interp1(v2, 1:length(v2), v1, 'nearest', 'extrap')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!