readtimetable does not read the entire Excel file
Show older comments
I have several Excel files with date and time and then some ten columns. The number of lines is 9000.
When I read them with readtimetable, I get them correct in six cases. The other four get cut at line 2881, 4345, 745 and 745 respectively. The first problematic one had dashes instead of the values in a column from the point that it did not work. I put 0 there and still it does not work.
What more can I try?
7 Comments
Mathieu NOE
on 17 Nov 2023
hi
can you share an extract of the excel files that cause the issue ?
Per Westerlund
on 17 Nov 2023
Per Westerlund
on 17 Nov 2023
Cris LaPierre
on 17 Nov 2023
Edited: Cris LaPierre
on 17 Nov 2023
I don't see dashes or zeros in the last 4 columns of this file. You can share a larger file than this. Perhaps one with at least the first 3000 rows? At least something that will demonstrate the same errors you are getting. That allows us to test it out. Consider sharing the code you are using to read in the files as well.
data = readtable('Svk_2017_del.xlsx','NumHeaderLines',6)
Per Westerlund
on 17 Nov 2023
Edited: Cris LaPierre
on 17 Nov 2023
Cris LaPierre
on 17 Nov 2023
I don't see any issues importing this file either. Do you?
Per Westerlund
on 17 Nov 2023
Accepted Answer
More Answers (0)
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!