interp2length function

Interpolate regularly sampled data to increase its sampling rate and match its length to another variable.