i have 16 different types of files and i have to take the files in the bunch of 5 from the 16 files, how i put permutation and combination to get 5 files from the 16 files each time differently?
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
Guillaume
2019년 8월 16일
Not clear what you call file when you only show numbers. To get 5 distinct random numbers from the range 1:16:
randperm(16, 5)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!