Spline Toolbox Previous page   Next Page 
 Provide feedback about this page

Construction

A piecewise-polynomial is usually constructed by some command, through a process of interpolation or approximation, or conversion from some other form e.g., from the B-form, and is output as a variable. But it is also possible to make one up from scratch, using the statement

For example, we might say pp=ppmak(-5:-1,-22:-11), or, more explicitly,

thus supplying the uniform break sequence -5:-1 and the coefficient sequence -22:-11. Since this break sequence has 5 entries, hence 4 break intervals, while the coefficient sequence has 12 entries, we have, in effect, specified a piecewise-polynomial of order 3 (= 12/4). The command

prints out all the constituent parts of this piecewise-polynomial, as follows:

Further, fnbrk can be used to supply each of these parts separately. But the point of Spline Toolbox is that you usually need not concern yourself with these details. You simply use pp as an argument to commands that evaluate, differentiate, integrate, convert, or plot the piecewise-polynomial whose description is contained in pp.


 Provide feedback about this page 

Previous page ppform Available Commands Next page

© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments


Your Ad Here