Returns the quarter of given date
returns
the quarter of the date for a calendar which starts on the month specified
by q
= quarter(date
,month1
,dateformat
)month1
. month1
must be
an integer between 1
–12
representing
January to December respectively. The dateformat
input
is a character vector to specify the format of your date character
vector in case it is not normally recognized by the datenum
function.