error in reading csv file
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Jan
2021 年 3 月 14 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!