write a row from excel to a text file

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2021년 3월 30일
댓글: Elysi Cochin 2021년 3월 30일
How can i write a string row ( not English ) from excel to notepad or wordpad. Is it possible in Matlab?
I have attached a sample excel sheet
  댓글 수: 8
Stephen23
Stephen23 2021년 3월 30일
I suspect that R2018a is unable to handle all Unicode correctly, but I have no way to check this. Perhaps Chris LaPierre can help further on clarifying this.
As an aside, I strongly recommend that you use a robust text editor, for example Notepad++.
Elysi Cochin
Elysi Cochin 2021년 3월 30일
Thank you sir for your suggestions

댓글을 달려면 로그인하십시오.

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 3월 30일
  댓글 수: 5
Cris LaPierre
Cris LaPierre 2021년 3월 30일
편집: Cris LaPierre 2021년 3월 30일
Doesn't sound like it. You hadn't indicated what version of MATLAB you were using, so I used my version, which is R2021a.
You may need to specify the encoding. Try using this for your write command.
writetable(d,"Book1.txt","WriteVariableNames",false,"Delimiter","\t",'Encoding','UTF-8')
For more details, see the "Write Foreign-Language Characters to Text Files" section of the R2018a writetable documentation.
Elysi Cochin
Elysi Cochin 2021년 3월 30일
Great Sir, thank you so much. Thanks a lot, now it works perfectly

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by