matrandbin
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 (2026). matrandbin (https://in.mathworks.com/matlabcentral/fileexchange/4641-matrandbin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | It was added an appropriate format to cite this file. |
