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

 採用された回答

Jocelyn
Jocelyn 2013 年 3 月 18 日

0 投票

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

その他の回答 (0 件)

製品

質問済み:

2013 年 2 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by