cubicSpline

Accurate method to produce a curve through data points.
4.8K Downloads
Updated 1 Jun 2004

No License

cubicSpline.m

Is used to give an accurate curved line through a given set of x,y data points. It is more accurate then the Matlab supplied spline function. You may set the level of smoothness of the curve.

Inputs:

coeff - an (Nx2) matrix where col 1 is the X data and column 2 is the y data.

smoothness - an integer describing how smooth to make the line (32 works well).

Cite As

Andrew Hastings (2024). cubicSpline (https://www.mathworks.com/matlabcentral/fileexchange/5028-cubicspline), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0