How to select a random value from a matrix?

1 visualización (últimos 30 días)
Sabarinathan Vadivelu
Sabarinathan Vadivelu el 27 de Sept. de 2012
How to select a random value from a matrix?
A = [1 2 3 4 5
6 7 8 9 10]
  1 comentario
Jan
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.

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 27 de Sept. de 2012
Did you delete this question after I've asked, if it is a homework, and reposted it??
  1 comentario
Sabarinathan Vadivelu
Sabarinathan Vadivelu el 27 de Sept. de 2012
At that time there was a network problem appears here. So My browser Crashed and also I cant do anything. So I reposted it.

Iniciar sesión para comentar.

Más respuestas (1)

ajith
ajith el 27 de Sept. de 2012
JUST USE RAND FUNCTION RAND()

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by