how select random n element af array without replacement
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
zohre saeedi
le 9 Oct 2016
Réponse apportée : Walter Roberson
le 9 Oct 2016
I have array with m members. how I can select 10 member of it randomly and without replacement?
0 commentaires
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 9 Oct 2016
samples = YourArray(randperm(m, 10)); %without replacement
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!