Can we save the table as delimited txt in a proper manner?

조회 수: 1 (최근 30일)
Jay Vaidya
Jay Vaidya 2020년 11월 16일
댓글: Adam Danz 2020년 11월 16일
I am using the following command.
writetable(T,'myData.txt','Delimiter',' ')
However, the table doesn't get stored as nicely as it appears in the MATLAB workspace. I also used '/t' as one of the delimiters, still, the outcome is the same.
The columns look squeezed in compared to the table headers. Importantly. my headers are big as well (~20 characters). Is there no way out that I can save the table as it is in the .txt form? Can I use file()?
  댓글 수: 1
Adam Danz
Adam Danz 2020년 11월 16일
The file created by writetable is computer-readable and does not necessarily produce a format that's easy on human eyes. If you write the table to an excel file it will be easier to view.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by