ppder
PPD = ppder (PP) PPD = ppder (PP, M) -- derivative of a piecewise polynomial. The M-th derivative (default 1) has the same breaks and dimension and order reduced by M. If M reaches the order, the result is the zero function on a single piece.