Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to interpolate a curve from a set of points

I have a set of points on the plane, and I want to interpolate these points to make a smooth curve.

I tried with spline() or even creating the lagrange polynomial, but the problem is that with these options I can only interpolate functions (so for example, if I have a discrete set of points of a circle, I cannot get the circle with spline() since it will interpolate the points following te x-axis order).

Is there any option to interpolate a curve following the order of points given in the list?

click to hide/show revision 2
retagged

How to interpolate a curve from a set of points

I have a set of points on the plane, and I want to interpolate these points to make a smooth curve.

I tried with spline() or even creating the lagrange polynomial, but the problem is that with these options I can only interpolate functions (so for example, if I have a discrete set of points of a circle, I cannot get the circle with spline() since it will interpolate the points following te x-axis order).

Is there any option to interpolate a curve following the order of points given in the list?