repeated elements in matrix

i have a Nx4 matrix like this [1 2 3 1; 2 1 3 2; 3 2 1 3] with the values of nodes making a clique, i need to find the occurances of a 1x2 matrix for instance [1 2] any suggestions?

2 件のコメント

Joseph Cheng
Joseph Cheng 2017 年 4 月 4 日
編集済み: Joseph Cheng 2017 年 4 月 4 日
for your example of [1 2] is that different from [1;2] [2;1] or [2 1]? or are these separate instances?
Charis L
Charis L 2017 年 4 月 5 日
it is like the first row of the first matrix consists of [1 2] [2 3] [3 1] also i only need row comparison and not column(and [1 2] is different from [2 1].

回答 (0 件)

この質問は閉じられています。

質問済み:

2017 年 4 月 4 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by