I have an excel file with the collumn A full of dates of this type: 01/01/2017 00:00 for example. When I import it to MATLAB, is imported as a cell array. I need to be able to treat those cell arrays as dates in MATLA abd make conditional operations with them. Can you help in a way I can do so?

 채택된 답변

Guillaume
Guillaume 2018년 5월 10일

0 개 추천

Use the modern readtable rather than the ancient xlsread. readtable parses dates properly.

댓글 수: 2

hey, thank you! that really helped me.
Also, probably take one extra step and use table2timetable.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by