Convert txt to readtable

1 visualización (últimos 30 días)
Danai Varvatsouli
Danai Varvatsouli el 1 de Jul. de 2020
Respondida: SC el 1 de Jul. de 2020
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 comentario
Walter Roberson
Walter Roberson el 1 de Jul. de 2020
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.]

Iniciar sesión para comentar.

Respuestas (1)

SC
SC el 1 de Jul. de 2020
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.

Community Treasure Hunt

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

Start Hunting!

Translated by