What is the convenient way to import from a csv file containing numbers and letters for data sorting (like Excel filter function)? Does it matter if I read it as table instead of string arrays?

 採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 19 日

0 投票

The most convenient way is typically readtable()
The most efficient way appears to be to use textscan(), according to the timings that people have posted. I have seen one report that in some cases readtable() can be much much slower -- though for my purposes it has always been a reasonable speed.

1 件のコメント

jingz3
jingz3 2018 年 6 月 20 日
編集済み: jingz3 2018 年 6 月 20 日
Thank you! readtable() works well for me.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTables についてさらに検索

質問済み:

2018 年 6 月 19 日

編集済み:

2018 年 6 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by