selecting values randomly from dataset

19 visualizzazioni (ultimi 30 giorni)
I have a data of 100*60 ,i want to select 3 rows randomly please help

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by