Help w/Matlab Interpolation Algorithms
I have an experimental dataset made up of 2D position coordinances. When plotted, the dataponts take on the shape of a circle or ellipse, with small sections where the data crosses back over its previous path. To aid in data analysis I am trying to interpolate between the datapoints so that there will be an even distribution of points along the entire trace.
In doing this I have converted the cartesian coordinances to polar coordinances, interpolating at a standard angle intervall (angle created by distance segment from datapoint to center, and horizontal axis) using the algorithm 'interp1'.
It seems during the instances where there may be more than one radius to an angle, the interpolated values begin jumping all over the place, not producing points indicative of the original trace. I'm wondering if there is an interpolation algorithm that lets me specify which radius to base the interpolation off of when there are more than one corresponding to an angle, or some other way I can interpolate that will eliminate the non-conformance at the points where the trace crosses over itself.