selecting values randomly from dataset

조회 수: 22 (최근 30일)
Pat
Pat 2011년 11월 16일
I have a data of 100*60 ,i want to select 3 rows randomly please help

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 16일
IDX = randperm(size(X,1));
RandomRows = X(IDX(1:3),:);

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by