matrandbin

Procedure to generate a randomized binomial matrix (0's & 1's).

You are now following this Submission

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://se.mathworks.com/matlabcentral/fileexchange/4641-matrandbin), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

It was added an appropriate format to cite this file.