how to get combination
1 次查看(过去 30 天)
显示 更早的评论
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 ?
采纳的回答
Rishabh Rathore
2018-6-1
Here's what I understand from your question, you want all divisors of a number.
You can use in-built 'divisors()' function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!