How do I create a random integer number binomial distributed between two values?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
amatlabr
am 21 Mär. 2018
Kommentiert: the cyclist
am 21 Mär. 2018
Hi All, as from subject I would like to know how to generate a random integer number binomial distributed between two values. Is there any built-in function ? Thanks
0 Kommentare
Akzeptierte Antwort
the cyclist
am 21 Mär. 2018
If you have the Statistics and Machine Learning Toolbox, you can use binornd. (You might need to add or multiply the result, depending exactly which integers you want.)
If you do not have this toolbox, there are other tricks you can do using core MATLAB.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!