how select random n element af array without replacement
Afficher commentaires plus anciens
I have array with m members. how I can select 10 member of it randomly and without replacement?
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 9 Oct 2016
samples = YourArray(randperm(m, 10)); %without replacement
zohre saeedi
le 9 Oct 2016
0 votes
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!