how to get combination
古いコメントを表示
I am seeking a help.
Suppose I have a number like 100. How I can get possible combination for this number. It can make two matrix for combinations A=[100,50,25,20,10,5,4,2,1] B=[1,2,4,5,10,20,25,50,100] how i can solve for big number?
1 件のコメント
Walter Roberson
2018 年 6 月 1 日
What is the difference between this question and your earlier https://www.mathworks.com/matlabcentral/answers/403502-possible-combination-of-a-number ?
採用された回答
その他の回答 (1 件)
If you have the Symbolic Math Toolbox, you can use the divisors function. Then it's a simple flip to get the opposite order.
カテゴリ
ヘルプ センター および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!