Many observations from arbitrary PDF
Version 1.0.0.0 (1.39 KB) by
Jack Peterson
Generate many observations from an arbitrary PDF.
Generates N random numbers from an arbitrary PDF, defined by vectors x and y. This is just a slightly modified version of Dave Dykes' randarb.m (http://www.mathworks.com/matlabcentral/fileexchange/6506-obs-from-arbitrary-pdf) that is optimized for generating many random observations.
Cite As
Jack Peterson (2026). Many observations from arbitrary PDF (https://www.mathworks.com/matlabcentral/fileexchange/41439-many-observations-from-arbitrary-pdf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Obs. from Arbitrary PDF
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
