could anyone help me how to run the line without using randsample
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
could anyone help me how to run the line without using randsample rows=unused_rows(randsample(length(unused_rows),N_UE_rows))
Antworten (2)
Image Analyst
am 13 Apr. 2018
0 Stimmen
Try randperm().
2 Kommentare
Prabha Kumaresan
am 16 Apr. 2018
Bearbeitet: Walter Roberson
am 16 Apr. 2018
Walter Roberson
am 16 Apr. 2018
In the output you show, the number of rows is the same each time, 2 rows each time.
Walter Roberson
am 16 Apr. 2018
rows = unused_rows(randperm(length(unused_rows),N_UE_rows))
3 Kommentare
Prabha Kumaresan
am 17 Apr. 2018
Walter Roberson
am 17 Apr. 2018
set the same rng() for every iteration.
Prabha Kumaresan
am 17 Apr. 2018
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!