readtimetable does not read the entire Excel file
Afficher commentaires plus anciens
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 commentaires
Mathieu NOE
le 17 Nov 2023
hi
can you share an extract of the excel files that cause the issue ?
Per Westerlund
le 17 Nov 2023
Per Westerlund
le 17 Nov 2023
Cris LaPierre
le 17 Nov 2023
Modifié(e) : Cris LaPierre
le 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
le 17 Nov 2023
Modifié(e) : Cris LaPierre
le 17 Nov 2023
Cris LaPierre
le 17 Nov 2023
I don't see any issues importing this file either. Do you?
Per Westerlund
le 17 Nov 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!