Efficient way to import data

조회 수: 3 (최근 30일)
jingz3
jingz3 2018년 6월 19일
편집: jingz3 2018년 6월 20일
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일
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개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by