필터 지우기
필터 지우기

Cell array into numeric array. Date data type handling.

조회 수: 1 (최근 30일)
Patricia Alejandra Palacios Romero
댓글: Peter Perkins 2018년 5월 14일
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일
Use the modern readtable rather than the ancient xlsread. readtable parses dates properly.
  댓글 수: 2
Patricia Alejandra Palacios Romero
hey, thank you! that really helped me.
Peter Perkins
Peter Perkins 2018년 5월 14일
Also, probably take one extra step and use table2timetable.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by