Table Of Contents

poly_pw

Version:
    Last Modified: March 15, 2017

    Constructs a piecewise polynomial.

    Syntax

    p = poly_pw(breaks, coefs)
    p = poly_pw(breaks, coefs, dimensions)
    Legacy name: mkpp

    Inputs

    breaks

    Points at which the piecewise polynomial breaks. breaks is a vector.

    coefs

    Coefficients of the piecewise polynomial. coefs is a matrix. The size of coefs must equal the length of breaks.

    dimensions

    Size of the piecewise polynomial. Scalar or vector.

    Default: 1

    Outputs

    p

    Results struct. p contains the fields "breaks", "coefs", "pieces", "order", and "dim".

    P = [2, 1, 0, 3; 1, -8, 0, 1];
    [PIECE] = poly_pw([0, 1, 2], P);

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics