r = binornd(n,p)
r = binornd(n,p,sz1)
r = binornd(n,p,sz1,sz2,...)
Generates random numbers from the binomial distribution specified by
the number of trials n and the probability of success for each trial p.
sz1,sz2,...: size of the output matrix
Cite As
Binlin Wu (2026). binornd (https://uk.mathworks.com/matlabcentral/fileexchange/89724-binornd), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
