Picking indices randomly
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Random Number Generation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!