Random numbers from a user defined piecewise polynomial distribution

RANDPDFS returns pseudorandom values drawn from an arbitrary distribution defined by the pp-form.

You are now following this Submission

All the information required to compute the random sequence are extracted from the pp-form structure, in particular the lowest and the highest generated numbers corresponds to the first and last break of the pp form respectively.
RANDPDFS uses FNINT to compute the cumulative distribution function, therefore spline toolbox has to be accessible to allow RANDPDFS to work properly.

Cite As

Luigi Sanguigno (2026). Random numbers from a user defined piecewise polynomial distribution (https://se.mathworks.com/matlabcentral/fileexchange/27693-random-numbers-from-a-user-defined-piecewise-polynomial-distribution), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0