Discrete random element selection based on a user-specified distribution

Returns random elements from a set of discrete points according to a user-specified distribution.

You are now following this Submission

The function takes as input a list of points (ids) and for each point a likelihood that it is selected randomly. The output is an array with random values which are distributed according to the input.

More information and example usage is provided at:
http://www.medical-image-processing.com/programming/discrete-random-element-selection-based-on-a-user-specified-probability

Cite As

Christopher (2026). Discrete random element selection based on a user-specified distribution (https://www.mathworks.com/matlabcentral/fileexchange/23412-discrete-random-element-selection-based-on-a-user-specified-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