Picking indices randomly
Afficher commentaires plus anciens
Suppose I have a binary vector B of size n. I'd like to randomly pick the indices with value 1. How would one go about doing this?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Random Number Generation 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!