Selecting all combinations of points
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
    Maurilio Matracia
 2021 年 2 月 2 日
  
    
    
    
    
    回答済み: Bjorn Gustavsson
      
 2021 年 2 月 2 日
            Hi there,
I have a set of points and I would like to generate a code that selects all the possible combinations (the order doesn't matter) of them.
For example, if I have a matrix with the coordinates of the points A, B, C I want to write other matrices with the coordinates extracted from the sets {}, {A}, {B}, {C}, {A,B}, {A,C}, {B,C}, {A,B,C}.
Thank you in advance for your help :)
0 件のコメント
採用された回答
  Bjorn Gustavsson
      
 2021 年 2 月 2 日
        Have a look at the nextmultichose at the file exchange: next-combination-permutations, and combinator.
HTH
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!