decyear
Decimal year calculator
Syntax
Description
converts one or moredy
= decyear(datetime
)datetime
arrays to decimal year,dy
.
converts one or more date vectors,dy
= decyear(dateVector
)dateVector
, into decimal year,dy
.
converts one or more date character vectors,dy
= decyear(dateCharacterVector
,format
)dateCharacterVector
, to decimal year using formatformat
.
anddy
= decyear(year
,month
,day
)
return the decimal year for corresponding elements of thedy
= decyear([year
,month
,day
])year,month,day
arrays.
anddy
= decyear(year
,month
,day
,hour
,minute
,second
)
return the decimal year for corresponding elements of thedy
= decyear([year
,month
,day
,hour
,minute
,second
])
arrays. Specify the six arguments as one-dimensional arrays of the same length or as scalar values.year
,month
,day
,hour
,minute
,second