csv file to matlab

2 views (last 30 days)
Deepesh Kumar Gupta
Deepesh Kumar Gupta on 7 Mar 2022
Commented: Jan on 7 Mar 2022
i have 1000 csv file and want to export these files into matlab . How can i do ?
please help me in this.

Accepted Answer

Jan on 7 Mar 2022
Do you mean "import"? What about csvread or the modern readtable?
Jan on 7 Mar 2022
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));

Sign in to comment.

More Answers (0)


Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!