yq = spline(x, y, xq)
pp = spline(x, y)
| Parameter | Description |
|---|---|
| x | Sample points. |
| y | Sample values. |
| xq | Query points. |
| Parameter | Description |
|---|---|
| yq | Interpolated values. |
| pp | Piecewise polynomial structure. |
spline evaluates a not-a-knot cubic spline or returns its piecewise polynomial form.
yq = spline(1:4, [0 1 0 1], [1.5 2.5])
| Version | Description |
|---|---|
| 2.0.0 | initial version |