permutation without replacement matrix
이전 댓글 표시
I would like to find out the number of possibilities when drawing k balls from an urn with n balls: k=6; n=12
This is of the type variations (In compliance with the order) and without repetitions (replacement)
Therefore I need a matrix of the size=[665280*12] and it looks like this
[0 0 0 0 0 0 1 2 3 4 5 6]
The rows will always have 6 zeros in any order and the remaining will be filled by the numbers 1 to 6. The total possibilities are obtained by n!/(n-k)!
Please help me to get this matrix
Best Regards Manoj
채택된 답변
추가 답변 (1개)
Gabriel Rodriguez
2019년 11월 26일
0 개 추천
how to turn matrix without usin' the apostrophe, rot90, flipud, fliplr
댓글 수: 1
James Tursa
2019년 11월 26일
Please open up a new Question for this.
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!