How to import large textfile
Show older comments
Hi EVERYONE I'm new to matlab, I've been trying to import large text file .asc to matlab. is there anyone can help. the file contains 59615 (24*24)matrix. I've attached small part of the file. When I import the whole file I get an error while if I import small part it works fine!! I don't think it's memory problem, can anyone help please???
4 Comments
Sara
on 9 Jun 2014
There is no attachment and you need to cut and paste the error you get here, so people can see exactly what error you get
dpb
on 9 Jun 2014
Didn't get the file attached.
How about letting us know what the error is? A 24x24 array is not a large file. More than likely there's something in the file causing a conversion error.
It is not too large, but not small either. Assuming 10 chars per element (including separators, etc), it is more than 300MB
>> 59615*24*24 * 10 / 1e6
ans =
343.3824
Could you provide a ~5MB sample?
Rajab Omar
on 9 Jun 2014
Accepted Answer
More Answers (0)
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!