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!