tdfread not finishing execution

1 次查看(过去 30 天)
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
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 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by