MyBernoulli( nP )

Function to generate a Bernoulli random variable.
93 Downloads
Updated 26 Mar 2015

View License

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 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