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!