hermitsplinemat

Calculates the Hermite spline interpolation equation that corresponds to each interval and places it in a matrix. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Parameter matrix m
  2. Integer value, specifies how tangents are calculated: 0 - Finite difference; 1 - Catmull-Rom spline; 2 - Monotone interpolation

Output

Matrix of equations for intervals

Examples

hermitsplinemat