csv file to matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Deepesh Kumar Gupta
am 7 Mär. 2022
Kommentiert: Jan
am 7 Mär. 2022
i have 1000 csv file and want to export these files into matlab . How can i do ?
please help me in this.
0 Kommentare
Akzeptierte Antwort
Jan
am 7 Mär. 2022
Do you mean "import"? What about csvread or the modern readtable?
2 Kommentare
Jan
am 7 Mär. 2022
@Deepesh Kumar Gupta: See: https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files
Are the files really calles 1,2,3,...1000 or '1.csv', and so on? Please do not let the readers guess the details.
folder = 'C:\theta';
list = dir(fullfile(folder, '*.csv')); % Or without '.csv' ?
data = cell(1, numel(list));
for k = 1:numel(list)
data{k} = csvread(fullfile(folder, list(k).name));
end
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!