Hi,
I have a cell array of dates that have this format: '08/28/01' '03/01/97' etc.. How can I convert them to a double matlab number date? where 08/28/01 refers to the 28th of august 2001 and 03/01/97 refers ti the first of march 1997

 채택된 답변

Matt Fig
Matt Fig 2011년 4월 25일

0 개 추천

datenum('08/28/01')

댓글 수: 2

Oleg Komarov
Oleg Komarov 2011년 4월 25일
I usually always write the format (since I am european):
datenum('08/09/01','mm/dd/yy')
Matt Fig
Matt Fig 2011년 4월 25일
This is probably not a bad practice to use in general. Thanks Oleg!

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

추가 답변 (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