ppval
YI = ppval (PP, XI) -- evaluate a piecewise polynomial. A point lying on an interior break uses the piece to its right; points outside the break range use the first or last piece. For an array valued PP with dimensions D the result has size [D, size(XI)], where a vector XI counts as a single dimension of numel (XI).