csv file to matlab
1 回表示 (過去 30 日間)
古いコメントを表示
i have 1000 csv file and want to export these files into matlab . How can i do ?
please help me in this.
0 件のコメント
採用された回答
Jan
2022 年 3 月 7 日
Do you mean "import"? What about csvread or the modern readtable?
2 件のコメント
Jan
2022 年 3 月 7 日
@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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!