how select random n element af array without replacement
显示 更早的评论
I have array with m members. how I can select 10 member of it randomly and without replacement?
采纳的回答
更多回答(2 个)
Walter Roberson
2016-10-9
samples = YourArray(randperm(m, 10)); %without replacement
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!