selecting values randomly from dataset

22 vues (au cours des 30 derniers jours)
Pat
Pat le 16 Nov 2011
I have a data of 100*60 ,i want to select 3 rows randomly please help

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Nov 2011
IDX = randperm(size(X,1));
RandomRows = X(IDX(1:3),:);

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by