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

1 回表示 (過去 30 日間)
Md Jonayet
Md Jonayet 2023 年 2 月 28 日
コメント済み: Voss 2023 年 2 月 28 日
EPL = readtable("EPLresults.csv")
another one is =
EPL = readtable("EPLresults.csv","TextType","string")
what this TextType and string are doing here?
  3 件のコメント
Md Jonayet
Md Jonayet 2023 年 2 月 28 日
what is the importance of this function? and thank you for your reply.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 2 月 28 日
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.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by