csv file to matlab

2 次查看(过去 30 天)
Deepesh Kumar Gupta
评论: Jan 2022-3-7
i have 1000 csv file and want to export these files into matlab . How can i do ?
please help me in this.

采纳的回答

Jan
Jan 2022-3-7
Do you mean "import"? What about csvread or the modern readtable?
  2 个评论
Deepesh Kumar Gupta
yes, i mean import. I have a folder name "thetha" ,inside a folder there are 1000 csv file named 1, 2, 3.....1000 , How can i import these files into matlab?
Jan
Jan 2022-3-7
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 CenterFile Exchange 中查找有关 Standard File Formats 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by