How i can select 206 rows randomly from excel file in matlab ?
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!