selecting values randomly from dataset

22 views (last 30 days)
I have a data of 100*60 ,i want to select 3 rows randomly please help

Accepted Answer

Walter Roberson
Walter Roberson on 16 Nov 2011
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!