dates with yy

조회 수: 1 (최근 30일)
joseph Frank
joseph Frank 2011년 4월 25일
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일
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개)

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by