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?
2 ビュー (過去 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!