Efficient way to import data

4 visualizzazioni (ultimi 30 giorni)
jingz3
jingz3 il 19 Giu 2018
Modificato: jingz3 il 20 Giu 2018
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?

Risposta accettata

Walter Roberson
Walter Roberson il 19 Giu 2018
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 Commento
jingz3
jingz3 il 20 Giu 2018
Modificato: jingz3 il 20 Giu 2018
Thank you! readtable() works well for me.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by