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
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일

0 개 추천

Did you delete this question after I've asked, if it is a homework, and reposted it??

댓글 수: 1

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일

0 개 추천

JUST USE RAND FUNCTION RAND()

카테고리

제품

Community Treasure Hunt

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

Start Hunting!

Translated by