how select random n element af array without replacement
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zohre saeedi
el 9 de Oct. de 2016
Respondida: Walter Roberson
el 9 de Oct. de 2016
I have array with m members. how I can select 10 member of it randomly and without replacement?
0 comentarios
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 9 de Oct. de 2016
samples = YourArray(randperm(m, 10)); %without replacement
0 comentarios
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!