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.

 Réponse acceptée

per isakson
per isakson le 21 Sep 2012
Modifié(e) : per isakson le 21 Sep 2012

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by