Reading a large csv and converting to timetable
古いコメントを表示
I have a large .csv (7179x72001) where the first column is filled with datenums and the remaining columns are numerical values. The only way I have been successful in reading this data is by using csvread() and it usually takes about 20 minutes.
I have a second .csv which contains the same values but in datetime format and I would like to compare the two.
Is it possible to convert the first column in the large file so that the values are datetimes, and then in turn convert this to a timetable?
I can do this but I only want to convert the first column, not the whole dataframe:
newtable=datetime(dataframe, 'ConvertFrom', 'datenum');
4 件のコメント
KSSV
2020 年 4 月 30 日
Did you try readtable?
Louise Wilson
2020 年 4 月 30 日
編集済み: Louise Wilson
2020 年 4 月 30 日
Louise Wilson
2020 年 4 月 30 日
Louise Wilson
2020 年 4 月 30 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!