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!