How to randomly and uniquely select 2000 samples from an array with 1x460800.
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226059/image.jpeg)
Any help much appreciated.
0 件のコメント
採用された回答
その他の回答 (1 件)
Alex Mcaulley
2019 年 6 月 24 日
Being A your array and N the number of random samples you want:
B = A(randperm(numel(A),N));
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!