How to select a random value from a matrix?
显示 更早的评论
How to select a random value from a matrix?
A = [1 2 3 4 5
6 7 8 9 10]
1 个评论
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.
采纳的回答
更多回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!