%% Unwrap Piecewise Polynomial Information
% Create a piecewise polynomial structure for the polynomial f(x) = x^2+x+1 on the interval [0 3], and then extract the information from the fields of the structure.

pp = mkpp([0 3],[1 1 1])

%

[breaks,coefs,L,order,dim] = unmkpp(pp)

% Copyright 2012 The MathWorks, Inc.