calquarters
Calendar duration in quarters
Syntax
Description
Q = calquarters(
returns
an array representing calendar quarters equivalent to the values in
array X
)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
Version History
Introduced in R2014b