Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. M = {{1,1,1,1},{2,2,4,4},{3,3,5,5},{9,9,3,1}}
  2.  
  3. M = {{1,1,1,1},{2,2,4,4},{3,3,5,5},{9,9,3,3}}
  4.  
  5. M = {{1, 1, 1, 1}, {2, 2, 4, 4}, {3, 3, 5, 5}, {9, 9, 3, 1}};
  6.  
  7. Select[GatherBy[Range[Length@M], Transpose[M][[#]] &], Length[#] > 1 &]
  8.  
  9. M2 = {{1, 1, 1, 1}, {2, 2, 4, 4}, {3, 3, 5, 5}, {9, 9, 3, 3}};
  10.  
  11. Select[GatherBy[Range[Length@M2], Transpose[M2][[#]] &], Length[#] > 1 &]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement