How to load multiple csv files and save them after converting into arff files?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hello_world
le 10 Juin 2015
Modifié(e) : hello_world
le 12 Juin 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 commentaires
Réponse acceptée
Walter Roberson
le 10 Juin 2015
datadir = 'C:\Users\Name\Documents\MATLAB';
d = dir(fullfile(datadir, '*.csv'));
for i=1:length(d)
filename = fullfile(datadir, d(i).name);
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!