selecting values randomly from dataset

I have a data of 100*60 ,i want to select 3 rows randomly please help

 채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 16일

0 개 추천

IDX = randperm(size(X,1));
RandomRows = X(IDX(1:3),:);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

Pat
2011년 11월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by