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!