cubicHermite

Evaluate a cubic Hermite spline

Syntax

y = cubicHermite(x, x1, x2, y1, y2, y1d, y2d)

Inputs (7)

x

Type: Real

Description: Abscissa value

x1

Type: Real

Description: Lower abscissa value

x2

Type: Real

Description: Upper abscissa value

y1

Type: Real

Description: Lower ordinate value

y2

Type: Real

Description: Upper ordinate value

y1d

Type: Real

Description: Lower gradient

y2d

Type: Real

Description: Upper gradient

Outputs (1)

y

Type: Real

Description: Interpolated ordinate value