pick a random entry from a vector
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
the cyclist
el 28 de Ag. de 2015
1 voto
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!