필터 지우기
필터 지우기

read txt file instead of dlmread

조회 수: 2 (최근 30일)
huda nawaf
huda nawaf 2012년 5월 1일
hi, are there other way instead of dlmread read txt file has non equal rows?
I deal with very big size txt file . for example , i want read txt file with 17000 rows and different no. of columns . when used dlmread , i have to wait very long time to get data
thanks in advance

채택된 답변

Daniel Shub
Daniel Shub 2012년 5월 1일
  댓글 수: 2
huda nawaf
huda nawaf 2012년 5월 1일
i can not use textscan, may the no. of columns more than 100
thanks
Daniel Shub
Daniel Shub 2012년 5월 1일
http://www.mathworks.co.uk/help/techdoc/import_export/f5-35378.html
Suggests using textscan for both large and non rectangular text files. I do not believe that 17,000 rows or 100 columns should be any problem at all for textscan.
If you follow the documentation for using lower level file i/o also.

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

추가 답변 (1개)

tlawren
tlawren 2012년 5월 1일
On average, how many columns are there? Or, better yet, what is the maximum number of columns you might expect in your data? I can quickly load text files with 100k rows and in upwards of 100 columns on my machine. But then again, that may be small compared to what you are dealing with. If you are working on the same files over and over, it might be worthwhile to spend some time formatting and re-saving your data in form that is easier to handle.
  댓글 수: 1
huda nawaf
huda nawaf 2012년 5월 1일
i can not guesses, i get if from other process

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by