pick a random entry from a vector
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lou
el 28 de Ag. de 2015
Respondida: the cyclist
el 28 de Ag. de 2015
Hello, is there a matlab function that picks a random entry from a vector? I solved the problem with
i=randperm(length(vector),1),
entry=vector(i).
But i wondered if there is a more elegant solution. Thank you
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
Más información sobre Random Number Generation 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!