importdata doen't read the entire txt file

4 Ansichten (letzte 30 Tage)
Rana Sobhy
Rana Sobhy am 24 Jul. 2016
Kommentiert: per isakson am 24 Jul. 2016
i have a large txt file with 2,609,876 line encoded in ANSI format when i've used the import data command to save it in a matrix , Matlab read the first 400,000 line only . How can i fix this problem. Also i try to encode the file into UTF-8 the same result are get. the data stored in the file are comma delimited such as :
1.050458716,0.010869565,0,0.006993468,6.60E+00,0.115440419,6.077642243,1.13E-08,13.33333333,0.454117523,13.07692308,0.985354563,0.36772478,0.048202102,0.008196767,0.148336301,2
1.050458716,0.058423913,0,0.006993468,6.60E+00,0.115440419,6.077642243,1.13E-08,12.30769231,0.454117523,14.61538462,0.985354563,0.36772478,0.048202102,0.008196767,0.148336301,2
  1 Kommentar
per isakson
per isakson am 24 Jul. 2016
Have you checked the 400001th row? Could it contain some non-numerical character?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by