Sampling from a discrete distribution
The function is to draw samples from an arbitrary discrete distribution.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Dahua Lin (2026). Sampling from a discrete distribution (https://ch.mathworks.com/matlabcentral/fileexchange/21912-sampling-from-a-discrete-distribution), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Fast Sampling From A Discrete Distribution, Lynx MATLAB Toolbox
General Information
- Version 1.1.0 (2.21 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux