Randsample in matlab 2007

조회 수: 4 (최근 30일)
Cristian
Cristian 2012년 11월 23일
Hello, I have a question, which is the equivalent of randsample in matlab 2007 ? I am using matlab 2012 now and this works fine, but at the university we have a 2007 license and it is not working.
I am using it like so to take a value from 1 to M. Where M can be any number possible, for example 10 billion.
i=randsample(M,1);
Thank you!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 23일
편집: Azzi Abdelmalek 2012년 11월 23일
randi(1000000000,1)
  댓글 수: 1
Cristian
Cristian 2012년 11월 23일
Thank you very much.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Cloud Integrations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by