How to import many csv files in matlab and export one excel file?
13 次查看(过去 30 天)
显示 更早的评论
many cvs files 9, 10(or J, K) matrix read in matlab ->many variable calculate -> input one excel file
1 个评论
源樹 上林
2021-9-14
How about this way ?
a = xlsread('hogehoge.csv');
b = xlsread('fugafuga.csv');
filename = 'piyopiyo.xlsx';
xlswrite(filename, a, 'sheet1');
xlswrite(filename, b, 'sheet2');
回答(1 个)
Prince Kumar
2021-11-24
Hi,
t1 = readtable('data1.csv');
t2 = readtable('data2.csv');
writetable(t1,'myData.xls','Sheet',1);
writetable(t2,'myData.xls','Sheet',2);
Here, content of 'data1.csv' and 'data2.csv' is being writtent to sheet 1 and 2 of the excel sheet respectively.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!