What I did was to run through all the data for the amount of times I wanted and interpolated when the point of interest was between the data. The code I used was:
for j = 1:lo
y2(j,1) = B(j,2);
for j = 1:ul
y2(j+l,1) = B(j+l,2);
etc... for as many cycles I wanted it. It worked well.