필터 지우기
필터 지우기

Convert txt to readtable

조회 수: 3 (최근 30일)
Danai Varvatsouli
Danai Varvatsouli 2020년 7월 1일
답변: SC 2020년 7월 1일
I have a 2015a licences and I am trying to read a humid.txt file. I use readtable('humid.txt'); and then convert it with table2array. It normally works. Bu it's not readable by my matlab and it gives many errors. Instead if I use load it is readable. Anyone knows why?
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 7월 1일
Is it UTF encoded instead of plain text? Older versions of MATLAB did not support UTF encoded text files for readtable(). [They did support UTF encoded text files for textscan() if you knew what to do.]

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

답변 (1개)

SC
SC 2020년 7월 1일
Hey readtable is introduced in 2013b, it should work normally without errors.
Visit the following documentation to see, how it works:
if still the problem exists, attach your 'humid.txt' file. So the exact problem could be understood.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by