could anyone help me how to run the line without using randsample
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
could anyone help me how to run the line without using randsample rows=unused_rows(randsample(length(unused_rows),N_UE_rows))
Réponses (2)
Image Analyst
le 13 Avr 2018
0 votes
Try randperm().
2 commentaires
Prabha Kumaresan
le 16 Avr 2018
Modifié(e) : Walter Roberson
le 16 Avr 2018
Walter Roberson
le 16 Avr 2018
In the output you show, the number of rows is the same each time, 2 rows each time.
Walter Roberson
le 16 Avr 2018
rows = unused_rows(randperm(length(unused_rows),N_UE_rows))
3 commentaires
Prabha Kumaresan
le 17 Avr 2018
Walter Roberson
le 17 Avr 2018
set the same rng() for every iteration.
Prabha Kumaresan
le 17 Avr 2018
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!