Problems with importing date and time from Excel to Matlab
이전 댓글 표시
I have an Excel-sheet (xlsx) with the following as the first column:
Timestamp
2011-09-30 08:15
2011-09-30 08:23
2011-09-30 08:47 and so on
I have tried the three ways to import it into Matlab by using the functions xlsread and importdata and opening it with Ctrl-O in Matlab. The functions do not import the date and time column. With the last alternative Matlab opens an import windows, where it proposes the conversion of Excel dates to datenum and non-numeric to 0.0. It works well for all files except for the biggest one, about 180,000x18. It warns that it can be slow when importing more than 2 million cells. It takes a while and then the first column contains just 0. When I cut off the columns that I do not use by now (to 11 or less), I managed to get the file into the variable untitled.
How can I use the function xlsread to import the data? How can I import bigger files without having to cut them?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!