Piecewise Polynomial Functions Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: ppcreate.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Duane Hanselman (View more)

Piecewise Polynomial Functions script description:




Publisher review:
Piecewise Polynomial Functions - Piecewise Polynomial functions, i.e., splines and pchip, derivative, integral, zeros, etc. PPfun = PPCREATE(X,Y,Type,P,Tag) creates a function handle PPfun for a 1-D piecewise polynomial described by the data X and Y. Type is a character string identifying the type of piecewise polynomial desired. P is an optional array of parameters required for some Types.Tag is an optional character string to store with PPfun for identification purposes.Type/Description'pchip' same as MATLAB PCHIP function, no P required.'spline' same as MATLAB SPLINE function, no P required.'notaknot' same as MATLAB SPLINE function, no P required.'extrap' same as MATLAB SPLINE function, no P required.'natural' spline, y''=0 at end points, no P required.'parabolic' spline, first and last polys are parabolic, no P required.'clamped' spline, P is two element vector of slopes y' at end points.'curvature' spline, P is two element vector of y'' at the end points.'hermite' spline, P is a vector of slopes at all points in X.PPfun = PPCREATE(PP,Tag) where PP is the 1-D piecewise polynomial structure returned by PP = PCHIP(X,Y) or PP = SPLINE(X,Y) creates a function handle PPfun containing PP. Tag is an optional string as described above.PPfun2 = PPCREATE(PPfun,Op,P,Tag) peforms the operation specified by the string Op on the piecewise polynomial function handle PPfun, returning a new function handle PPfun2. P is an optional parameter. Tag is an optional string as described above.Operation/Descriptiondiff differentiate the piecewise polynomialint integrate the piecewise polynomial, P is the integration constant or initial value of the integral.tag store tag string P with function handle.inv inverse interpolation function handle returned, e.g., PPinv, interpolates the piecewise polynomial, such that [Xi,Yi]=PPinv(Yi) finds all points Xi where the piecewise polynomial has the scalar value Yi. If none are found an empty array is returned. On output Yi=repmat(Yi,size(Xi)).PPinv('tag') returns the tag assigned to PPinv.cut cut spline apart, P = [Xmin Xmax] defines the range of the revised piecewise polynomial.The created piecewise polynomial function handle PPfun has the following features:Sytax/DescriptionPPfun(x) evaluate the function at the points in x.PPfun('tag') return Tag string stored in PPfun.PPfun('pp') return MATLAB-defined piecewise polynomial structure.PPfun('breaks') return breakpoints X used to create PPfun.PPfun('pieces') return number of piecewise polynomials, length(X)-1.PPfun('order') return order of the piecewise polynomial. (4 = cubic)PPfun('plot') plots the piecewise polynomial over its entire range.
Piecewise Polynomial Functions is a Matlab script for Mathematics scripts design by Duane Hanselman. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Piecewise Polynomial Functions - Piecewise Polynomial functions, i.e., splines and pchip, derivative, integral, zeros, etc.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5