How i can select 206 rows randomly from excel file in matlab ?
Show older comments
my excel file contain data set 1030*8
the data set should be divided in to 5 sets each one have 206 random rows , then i should use every set in testing and training for error reports .. I've tried this :
nRows=1030;
for i=1:5,
for k=1:206,
set(i)=randi(nRows,1);
disp(sprintf('set=%g',change));
end
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!