could anyone help me how to run the line without using randsample
Info
This question is closed. Reopen it to edit or answer.
Show older comments
could anyone help me how to run the line without using randsample rows=unused_rows(randsample(length(unused_rows),N_UE_rows))
Answers (2)
Image Analyst
on 13 Apr 2018
0 votes
Try randperm().
2 Comments
Prabha Kumaresan
on 16 Apr 2018
Edited: Walter Roberson
on 16 Apr 2018
Walter Roberson
on 16 Apr 2018
In the output you show, the number of rows is the same each time, 2 rows each time.
Walter Roberson
on 16 Apr 2018
rows = unused_rows(randperm(length(unused_rows),N_UE_rows))
3 Comments
Prabha Kumaresan
on 17 Apr 2018
Walter Roberson
on 17 Apr 2018
set the same rng() for every iteration.
Prabha Kumaresan
on 17 Apr 2018
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!