How to load multiple csv files and save them after converting into arff files?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hello_world
am 10 Jun. 2015
Bearbeitet: hello_world
am 12 Jun. 2015
Hello Friends,
I have several csv files, all stored in path 'C:\Users\Name\Documents\MATLAB\*.csv'. I want to loop one by one each file in order, convert them into arff files, and save them 'C:\Users\Name\Documents\MATLAB\*.arff'
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Jun. 2015
datadir = 'C:\Users\Name\Documents\MATLAB';
d = dir(fullfile(datadir, '*.csv'));
for i=1:length(d)
filename = fullfile(datadir, d(i).name);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!