selecting values randomly from dataset

I have a data of 100*60 ,i want to select 3 rows randomly please help

 Accepted Answer

IDX = randperm(size(X,1));
RandomRows = X(IDX(1:3),:);

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!