could anyone help me how to run the line without using randsample
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
could anyone help me how to run the line without using randsample rows=unused_rows(randsample(length(unused_rows),N_UE_rows))
Respuestas (2)
Image Analyst
el 13 de Abr. de 2018
0 votos
Try randperm().
2 comentarios
Prabha Kumaresan
el 16 de Abr. de 2018
Editada: Walter Roberson
el 16 de Abr. de 2018
Walter Roberson
el 16 de Abr. de 2018
In the output you show, the number of rows is the same each time, 2 rows each time.
Walter Roberson
el 16 de Abr. de 2018
rows = unused_rows(randperm(length(unused_rows),N_UE_rows))
3 comentarios
Prabha Kumaresan
el 17 de Abr. de 2018
Walter Roberson
el 17 de Abr. de 2018
set the same rng() for every iteration.
Prabha Kumaresan
el 17 de Abr. de 2018
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!