Reading very heavy .txt files and writing into .xlsx
2 次查看(过去 30 天)
显示 更早的评论
Hello, I have a very heavy data file and I have divided it into several parts but I don't know how to write those separated files into excel format.
Would be very helpful to get the code for that.
Thank you!
4 个评论
Kevin Chng
2018-10-8
Then we have to
1st step : Import your text file to MATLAB https://www.mathworks.com/help/matlab/import_export/ways-to-import-text-files.html
2nd step : Write to excel file
writetable()
if you are unsure with it, you may provide few of your files. So we can assist you better.
Jan
2018-10-8
What exactly is a "heavy data file"? Which format does it have? What exactly is the problem? What have you tried so far?
回答(1 个)
ANKUR KUMAR
2018-10-8
A=randi(10,50,50); %a random matrix to store in excel file
xlswrite('sample.xlsx',A,'sheet1','A1')
You can use 'sheet1' to write in sheet1 of excel file.
If you wish to save every output in different sheets, then keep on changing sheets.
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!