tdfread not finishing execution

Hi,
I am trying to read in a file using tdfread, but the function never finishes executing. I have sucessfully used the function before, so it seems like it is just the one particular file' I have tried calling the function using both:
tdfread('filename.txt')
and
s = tdfread('filename.txt')
The file is not huge. It has 35 tab deliminated items in the first line as variable names, and 596 total rows containing data (including the first row). I have tried letting it run, but it will go for over 30min without finishing. Whenever I force quit the function, the operation is terminated during 'genvarname':
Operation terminated by user during genvarname (line 131)
In tdfread (line 131) varnames = genvarname(varnames);
Please help me figure out what is wrong, thanks!
Jocelyn

 Akzeptierte Antwort

Jocelyn
Jocelyn am 18 Mär. 2013

0 Stimmen

Hi,
I finally figured this one out. The file was made with a different OS than it was being read in, so the newline character was different. As a result no newlines were able to be found.
Jocelyn

Weitere Antworten (0)

Kategorien

Mehr zu Variables finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by