필터 지우기
필터 지우기

How to pull in data from excel with a datetime value using readtable?

조회 수: 3 (최근 30일)
Helena
Helena 2018년 6월 12일
댓글: Paolo 2018년 6월 12일
Sorry for the simple question, I am new to MATLAB. I'm using the readtable function to pull in data from an excel spreadsheet. When I use the manual 'import data' button on MATLAB it automatically reads the column as datetime, when I do it using the readtable function it pulls it through as a table and doesn't recognise the dates. How do I use the readtable function to automatically pull through this column as datetime?
Thanks
  댓글 수: 1
Paolo
Paolo 2018년 6월 12일
When using readtable you can specify additional options for the importing. You can find more information here, you will find that datetime is included in the VariableTypes properties. Could you attach your Excel file?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by