I am trying to import excel data that has a date and time stamp, but MATLAB is ignoring it. The date and time is in the A column of excel, and when I use the import data button in MATLAB it only imports the data in the B column. In the excel cell it looks like this:
2016/03/11 15:50:47.689
But the actual data in the cell is:
3/11/2016 3:50:48 PM
This also doesn't make sense because in a slightly different file with the same date format is working.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 3월 25일
편집: Azzi Abdelmalek 2016년 3월 25일

3 개 추천

Use xlsread function
[num,text,both]=xlsread('yourfile.xlsx')

댓글 수: 2

Evan Chou
Evan Chou 2016년 3월 27일
Thank you! That has worked.
Peter Perkins
Peter Perkins 2017년 11월 16일
In recent versions of MATLAB, you are better off using readtable rather than xlsread.

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

추가 답변 (1개)

mantu babu
mantu babu 2017년 11월 6일

0 개 추천

I also have problem like this and when is use " * _Use xlsread function
[num,text,both]=xlsread('yourfile.xlsx')_** "
function i get the time and date stamp but with 1 day delay. please help

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2016년 3월 25일

댓글:

2017년 11월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by