how select random n element af array without replacement

 Réponse acceptée

KSSV
KSSV le 9 Oct 2016
Modifié(e) : KSSV le 9 Oct 2016
Let a be your array..to select 10 memebers randomly out of a use
iwant = randsample(a,10)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by