How to select a random value from a matrix?

1 次查看(过去 30 天)
How to select a random value from a matrix?
A = [1 2 3 4 5
6 7 8 9 10]
  1 个评论
Jan
Jan 2012-9-27
This sounds like a homework question. I suggest to use RANDI or RAND together with FLOOR. The command NUMEL will be helpful also.

请先登录,再进行评论。

采纳的回答

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

请先登录,再进行评论。

更多回答(1 个)

ajith
ajith 2012-9-27
JUST USE RAND FUNCTION RAND()

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by