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 ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by