Quadratic Spline Interpolation
Quadratic Spline Interpolation with first linear spline is provided by this code.
In the first two lines the user has to insert data points (x), (y) and then execute the program.
The output of this code is the coefficients of quadratic equation in a vector (Coeff) sorted by [a1;b1;c1;a2;b2;c2.....,an;bn;cn].
A plot is generated contains the interpolated data in red circles, quadratic splines.
Cite As
Ahmed Mekkawy (2024). Quadratic Spline Interpolation (https://www.mathworks.com/matlabcentral/fileexchange/50622-quadratic-spline-interpolation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Interpolation >
- AI, Data Science, and Statistics > Curve Fitting Toolbox > Splines >
- Mathematics and Optimization > Optimization Toolbox > Quadratic Programming and Cone Programming >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.