tdfread not finishing execution

1 view (last 30 days)
Jocelyn
Jocelyn on 27 Feb 2013
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

Accepted Answer

Jocelyn
Jocelyn on 18 Mar 2013
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

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!