
importdata cuts my files in half!
2 views (last 30 days)
Show older comments
drct = 'S_up_';
top = importdata(strcat(drct,'200.txt'));
The attached .txt file is 5000 rows tall, but when I use importdata or load, it only loads the first 2500 rows.
There is no header, only straight data. I also tried specifying space delimiter but the problem persists.
So it exactly cuts my data in half, Weird.
version R2016a
1 Comment
Answers (1)
Cris LaPierre
on 11 Aug 2020
Edited: Cris LaPierre
on 11 Aug 2020
When I open the file you have attached (outside MATLAB), it only contains 2500 rows. Perhaps you meant to attach a different file? Or perhaps you are mistaken in thinking the file has 5000 rows?
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!