takes time importing large data files

조회 수: 9 (최근 30일)
Tino
Tino 2019년 6월 16일
답변: Sulaymon Eshkabilov 2019년 6월 16일
Hi
I am trying to import data from csv file with size (1046520 1). Using the importdata function. K = importdata('caamel.csv'); It is taking over an hour to compute my program. What is the fastest way make computation easier when importing very large files
Your help will be highly appreciated
Regards
Tino
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 6월 16일
textscan() would probably be faster.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 6월 16일
Hi,
There are several builtin options/functions in MATLAB to get the data imported faster than import wizard or importdata(). They are csvread('caamel.csv'), dlmread('caamel.csv') and ...fscanf(), textscan(). Moreover, if all of your data are numerical and only comma is used as separtor, then you can use load('caamel.csv') command, as well which is much faster than importdata.
Good luck.

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by