How to select a random value from a matrix?
Mostrar comentarios más antiguos
How to select a random value from a matrix?
A = [1 2 3 4 5
6 7 8 9 10]
1 comentario
Jan
el 27 de Sept. de 2012
This sounds like a homework question. I suggest to use RANDI or RAND together with FLOOR. The command NUMEL will be helpful also.
Respuesta aceptada
Más respuestas (1)
ajith
el 27 de Sept. de 2012
0 votos
JUST USE RAND FUNCTION RAND()
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!