Importing data files with data sets seperated by enters

Hi, I have multiple data files saved in one single .txt file like this (each dataset has two columes, but the datasets are in serials):
---------------
filename1
0.0932031 2.40372e+14 0.0932031 2.40372e+14 0.0996875 2.48883e+14 0.0996875 2.48883e+14 0.106172 2.58933e+14
filename2
0.112656 2.70647e+14 0.112656 2.70647e+14 0.119141 2.84178e+14
filename3
0.0932031 2.40372e+14 0.0932031 2.40372e+14 0.0996875 2.48883e+14 0.0996875 2.48883e+14 0.106172 2.58933e+14
filename4
0.229375 8.94822e+14 0.235859 9.50392e+14 0.235859 9.50392e+14 0.268281 1.22841e+15 0.268281 1.22841e+15
----------------------------------
I want to import every files into Matlab so I tried with importdata(). But it stops at the first enter. Anyone could give me some advice on how to import this kind of file into Matlab? Thanks a lot.

 채택된 답변

per isakson
per isakson 2012년 9월 21일
편집: per isakson 2012년 9월 21일

0 개 추천

See the question Parsing Formatted Text File Quickly There is working code for reading a similar text file.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

질문:

2012년 9월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by