calquarters
Calendar duration in quarters
Syntax
Q = calquarters(X)
Description
Q = calquarters(
returns an array representing calendar quarters equivalent to the values in arrayX
)X
.
If
X
is a numeric array, thenQ
is acalendarDuration
array with each element equal to the number of calendar quarters in the corresponding element ofX
.If
X
is acalendarDuration
array, thenQ
is adouble
array with each element equal to the number of whole calendar quarters in the corresponding element ofX
.Q = fix(calmonths(t)/3)
Examples
Input Arguments
Extended Capabilities
See Also
Introduced in R2014b
Was this topic helpful?