Is there a function implemented for calculating urn problems, especially "Categorical distribution" or "Multinomial distribution", in MATLAB 8.0 (R2012b)?
Show older comments
I am looking for a function that returns all possible combinations of outcomes of a categorical distribution.
For example giving the possible outcomes "1" and "2" and making 3 draws, I would expect the function to return a matrix:
ans =
1 1 1
1 1 2
1 2 2
2 2 2
Accepted Answer
More Answers (0)
Categories
Find more on Univariate Discrete Distributions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!