selecting values randomly from dataset

22 visualizaciones (últimos 30 días)
Pat
Pat el 16 de Nov. de 2011
I have a data of 100*60 ,i want to select 3 rows randomly please help

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by