In "nchoosek" function, how to do some of elements of matrix are the same?
1 回表示 (過去 30 日間)
古いコメントを表示
the title just is question.
I want to get including that
2 件のコメント
回答 (1 件)
Andrei Bobrov
2017 年 9 月 19 日
>> nchoosek(A,2)
ans =
6 6
6 7
6 7
6 9
6 11
6 13
6 7
6 7
6 9
6 11
6 13
7 7
7 9
7 11
7 13
7 9
7 11
7 13
9 11
9 13
11 13
>> nchoosek(unique(A),2)
ans =
6 7
6 9
6 11
6 13
7 9
7 11
7 13
9 11
9 13
11 13
>>
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!