Prev: Y axis plot labeling? Want auto scaling, but want to format...
Next: Differences in XML File generated in Matlab vs Outside Matlab
From: Craig on 10 Mar 2010 14:23 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 10 Mar 2010 14:18
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); |