Skip to content

mkpp

polynomial · scripts/polynomial/mkpp.m

PP = mkpp (BREAKS, COEFS)
PP = mkpp (BREAKS, COEFS, D)  --  build a piecewise polynomial structure.

On piece K the function is COEFS(K,1)*(x-b_K)^(order-1) + ... +
COEFS(K,order), with b_K the K-th break.  D gives the dimensions of an
array valued function (default 1).