Picking indices randomly
古いコメントを表示
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?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!