FUNCTION REFERENCE

aptknt

Knot sequence suitable for spline interpolation.

Knot sequence suitable for spline interpolation.

Syntax

knots = aptknt(tau, k)

Syntax

[knots, k] = aptknt(tau, k)

k-fold end knots at tau(1) and tau(end) and interior knots aveknt(tau, k) (means of k-1 consecutive sites), so interpolation at tau by order-k splines is well posed. When tau has fewer than k entries, k is reduced to numel(tau) and returned. tau must be nondecreasing.

Example

aptknt([0 1 2 3 4], 3)   % [0 0 0 1.5 2.5 4 4 4]

Differences from MATLAB: none known for the documented forms.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.