Skip to Main Content Skip to Search
Product Documentation

unmkpp - Piecewise polynomial details

Syntax

[breaks,coefs,l,k,d] = unmkpp(pp)

Description

[breaks,coefs,l,k,d] = unmkpp(pp) extracts, from the piecewise polynomial pp, its breaks breaks, coefficients coefs, number of pieces l, order k, and dimension d of its target. Create pp using spline or the spline utility mkpp.

Examples

This example creates a description of the quadratic polynomial

as a piecewise polynomial pp, then extracts the details of that description.

pp = mkpp([-8 -4],[-1/4 1 0]);
[breaks,coefs,l,k,d] = unmkpp(pp)

breaks =
    -8    -4

coefs =
   -0.2500    1.0000         0

l =
     1

k =
     3

d =
     1

See Also

mkpp | ppval | spline

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS