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 件)
ajith
2012 年 9 月 27 日
0 投票
JUST USE RAND FUNCTION RAND()
カテゴリ
ヘルプ センター および 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!