How to create the combination (CN, k)of zeros and ones matrix in matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
Greetings dear friends
I would like to ask you about how I could create an 11x11 square matrix of zeros and ones, taking into account that I want to combine C11,6 (6 objects taken among 11 objects), which results in 462 using the formula, then I applied the following code, but it did not I get a square matrix, thanks for your help
댓글 수: 3
the cyclist
2022년 11월 22일
It is still not clear what you need for output.
Suppose that instead of N=11, k=6 (which has 426 combinations), you use the smaller example of N=3, k=2 (which has just 6 combinations). What should the output be? Don't tell us what the output should be similar to. Tell us exactly what the output should be for this small case. (The array you show above is just the identity matrix, so it is very unclear what you mean.)
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Signal Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!