MyBernoulli( nP )
Version 1.0.0.0 (644 Bytes) by
Silvano Bertoldo
Function to generate a Bernoulli random variable.
Function to generate a Bernoulli random variable. It returns 1 with probability of success P and 0 with probability of unsucces 1-P
Cite As
Silvano Bertoldo (2024). MyBernoulli( nP ) (https://www.mathworks.com/matlabcentral/fileexchange/50245-mybernoulli-np), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |