What is the difference between these two reading table file funciton?

1 visualización (últimos 30 días)
Md Jonayet
Md Jonayet el 28 de Feb. de 2023
Comentada: Voss el 28 de Feb. de 2023
EPL = readtable("EPLresults.csv")
another one is =
EPL = readtable("EPLresults.csv","TextType","string")
what this TextType and string are doing here?
  3 comentarios
Md Jonayet
Md Jonayet el 28 de Feb. de 2023
what is the importance of this function? and thank you for your reply.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Feb. de 2023
If you have a particular variable (column) that contains some text, then do you want the text to be represented as a cell array of character vectors (the default) or do you want the text to be represented as a column vector of string() objects ('TextType', 'string') ? There are advantages and disadvantages to either choice.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by