matrandbin

Procedure to generate a randomized binomial matrix (0's & 1's).
1.1K Downloads
Updated 19 Mar 2004

View License

This file generates a matrix of 'n' (rxc) random numbers (0's & 1's) with a binomial distribution (randomized binomial matrix). The parameter 'p' is the probability associated to get ones [P(x=1) = p]. The matrix generated can be squared (r==c) or not (r~=c).

It needs to input r-matrix rows, c-matrix columns, p-probability (in) associated to the ones (default = 0.5).

The outputs are a complete summary of the randomized binomial matrix procedure and a selected matrix of the random numbers.

Cite As

Antonio Trujillo-Ortiz (2024). matrandbin (https://www.mathworks.com/matlabcentral/fileexchange/4641-matrandbin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
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.0.0.0

It was added an appropriate format to cite this file.