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 Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by