How to load multiple csv files and save them after converting into arff files?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
hello_world
il 10 Giu 2015
Modificato: hello_world
il 12 Giu 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 Commenti
Risposta accettata
Walter Roberson
il 10 Giu 2015
datadir = 'C:\Users\Name\Documents\MATLAB';
d = dir(fullfile(datadir, '*.csv'));
for i=1:length(d)
filename = fullfile(datadir, d(i).name);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!