From: Craig on
I have X and Y data vectors and I want to resample Y to a new X that contains values that are not at even intervals. I've looked at the interp function, but it resamples by factors of the original.

It appears that I can format my data into a time series and use the resample function, but this is awkward and interp has more interpolation methods.

Any ideas?

Thanks,
Craig
From: Walter Roberson on
Craig wrote:
> I have X and Y data vectors and I want to resample Y to a new X that
> contains values that are not at even intervals. I've looked at the
> interp function, but it resamples by factors of the original.

newY = interp1( originalX, originalY, newX);