Moreno, M. (2023). Fast Cardinal and Catmull-Rom Spline Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/112810-fast-cardinal-and-catmull-rom-spline-interpolation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
The default function call y = cspl(x) produces curves with at least 100 points of resolution.
Faster processing of duplicates by initialising 'y' with the last 'x' value, and using a knot vector with open interval [0,1). Change of interpolation method from 'makima' to 'spline' if a resolution is queried. Removed minimum interval resolution.
Removal of duplicate values and interpolation to query resolution if 'n' is not parsed. Enhancement of the function description text. As a result, the function is faster when resolution values are not parsed, and it is exempt of duplicate values.