could anyone help me how to run the line without using randsample
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
could anyone help me how to run the line without using randsample rows=unused_rows(randsample(length(unused_rows),N_UE_rows))
0 件のコメント
回答 (2 件)
Image Analyst
2018 年 4 月 13 日
0 投票
Try randperm().
2 件のコメント
Prabha Kumaresan
2018 年 4 月 16 日
編集済み: Walter Roberson
2018 年 4 月 16 日
Walter Roberson
2018 年 4 月 16 日
In the output you show, the number of rows is the same each time, 2 rows each time.
Walter Roberson
2018 年 4 月 16 日
rows = unused_rows(randperm(length(unused_rows),N_UE_rows))
3 件のコメント
Prabha Kumaresan
2018 年 4 月 17 日
Walter Roberson
2018 年 4 月 17 日
set the same rng() for every iteration.
Prabha Kumaresan
2018 年 4 月 17 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!