Reading very heavy .txt files and writing into .xlsx

조회 수: 2 (최근 30일)
Pankaj Yadav
Pankaj Yadav 2018년 10월 8일
다시 열림: Walter Roberson 2018년 12월 22일
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
Kevin Chng 2018년 10월 8일
Then we have to
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
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
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.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by