Hello everyone,
I am using importdata to import data from a .txt file:
filename = '123.txt';data = importdata(filename);data = data.data;
- The .txt file is as attached. I used Excel to check the .txt file and it shows 24755 lines of data in addition to 1 line of header text.
- However, importdata can only import the first 66 lines.
- I also tried to use the "Import Data" button on the MATLAB panel and it worked fine. Nevertheless, I need to process a large number of .txt files and I certainly need to use code instead of clicking the "Import Data" button for hundreds of times.
It seems something wrong when using this importdata function, but I could not find out why up to now. Can anyone help me figure it out?
Thanks!
Sincerely,
Junfei Tang
Best Answer