Efficient way to import data

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?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Jun. de 2018

0 votos

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 comentario

jingz3
jingz3 el 20 de Jun. de 2018
Editada: jingz3 el 20 de Jun. de 2018
Thank you! readtable() works well for me.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 19 de Jun. de 2018

Editada:

el 20 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by