Probability in random numbers!
2 views (last 30 days)
Show older comments
How to create a random 2D array that each cell has different probabilities to be either 0 or 1 for example? In other words, how to t create a 2D array with each cell having a probability of 0.1 to be 1's and 0.9 probability to be 0's.
0 Comments
Answers (2)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!