what is “rando” command in matlab

조회 수: 1 (최근 30일)
Jay Hanuman
Jay Hanuman 2016년 10월 17일
편집: John D'Errico 2016년 10월 17일
If I enter matrix in a matlab and run command rando(a) then it shows sometimes 3 and sometimes 2. if I change element values of matrix a then also rando(a) shows sometimes 3 and sometimes 2. so what is this command.
  댓글 수: 1
Adam
Adam 2016년 10월 17일
편집: Adam 2016년 10월 17일
rando is not a builtin Matlab command so presumably it is your own function.

댓글을 달려면 로그인하십시오.

답변 (3개)

John D'Errico
John D'Errico 2016년 10월 17일
편집: John D'Errico 2016년 10월 17일
There is NO rando function in MATLAb. Perhaps you have obtained it from someone else.
You have several options.
1. You can look at the code.
2. You can call for help on rando.
If the author has done a good job, they will have provided help.
help rando
3. You can contact the source. Somebody wrote the code. So ask them.
4. Finally, perhaps you intended to write randi.
In that case, READ THE HELP.

Image Analyst
Image Analyst 2016년 10월 17일
Type
>> which rando
To see where it lives. To edit/open it and see what it does, type
>> edit rando.m

Walter Roberson
Walter Roberson 2016년 10월 17일
" Matlab program files for Math 445/545 Applied probability"
"rando.m generates a random variable in {1, 2, ..., n} given a distribution vector."

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by