Spline Toolbox™ Previous page   Next Page 
cscvn
 Provide feedback about this page

"Natural" or periodic interpolating cubic spline curve

Syntax

Description

curve = cscvn(points) returns a parametric variational, or natural, cubic spline curve (in ppform) passing through the given sequence . The parameter value for the point is chosen by Eugene Lee's [1] centripetal scheme, i.e., as accumulated square root of chord length:

If the first and last point coincide (and there are no other repeated points), then a periodic cubic spline curve is constructed. However, double points result in corners.

Examples

The following provides the plot of a questionable curve through some points (marked as circles):

Here is a closed curve, good for 14 February, with one double point:

Algorithm

The break sequence t is determined as

and csape (with either periodic or variational end conditions) is used to construct the smooth pieces between double points (if any).

See Also

csape, fnplt, getcurve, getcurv2

References

[1]  E.T.Y. Lee, Choosing nodes in parametric curve interpolation, Computer-Aided Design 21 (1989), 363-370.


 Provide feedback about this page 

Previous page csaps fn2fm Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS