error in reading csv file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I have a problem ( as shown in the figure) in reading csv file using readtable function. the coulmon of the time in csv file is written as 455.33.22 it means 4553322 seconds.
Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/549198/image.jpeg)
Ragrds,
Ayman
0 Kommentare
Antworten (1)
Jan
am 14 Mär. 2021
Use the 'Format' option of readtable to import the time as string. Then remove the dots with strrep and convert the rest to a number.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!