ArbRand.m

Arbitrary distribution random number generator.
190 Downloads
Updated 19 Mar 2018

View License

There are three optional inputs. first two inputs are the output matrix size specification parameters 'rows' and 'cols'. Third and last input is the user specified probability density function. This has to be have a range normalised between 0 and 1.
Default value for both 'rows' and 'cols' is 1. Default value for the probability density function is a monotonous triangular probability density function.

Cite As

2necklaces (2024). ArbRand.m (https://www.mathworks.com/matlabcentral/fileexchange/47412-arbrand-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Random Number Generation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5.0.0

House cleaning
Changed description

1.4.0.0

Replaced spline interpolation with linear as discontinuities were causing issues

1.3.0.0

Added Screen shot

1.2.0.0

Updated interpolation of PDF

1.1.0.0

Removed, resolution specification.

1.0.0.0