Picking indices randomly
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!