Number of group elements – MATLAB groupcounts
"second"
Each bin is 1 second.
datetime
and duration
"minute"
Each bin is 1 minute.
datetime
and duration
"hour"
Each bin is 1 hour.
datetime
and duration
"day"
Each bin is 1 calendar day. This value accounts for daylight saving time
shifts.
datetime
and duration
"week"
Each bin is 1 calendar week.datetime
only"month"
Each bin is 1 calendar month.datetime
only"quarter"
Each bin is 1 calendar quarter.datetime
only"year"
Each bin is 1 calendar year. This value accounts for leap days.
datetime
and duration
"decade"
Each bin is 1 decade (10 calendar years).datetime
only"century"
Each bin is 1 century (100 calendar years).datetime
only"secondofminute"
Bins are seconds from 0 to 59.
datetime
only"minuteofhour"
Bins are minutes from 0 to 59.
datetime
only"hourofday"
Bins are hours from 0 to 23.
datetime
only"dayofweek"
Bins are days from 1 to 7. The first day of the week is Sunday.
datetime
only"dayname"
Bins are full day names, such as "Sunday"
.datetime
only"dayofmonth"
Bins are days from 1 to 31.datetime
only"dayofyear"
Bins are days from 1 to 366.datetime
only"weekofmonth"
Bins are weeks from 1 to 6.datetime
only"weekofyear"
Bins are weeks from 1 to 54.datetime
only"monthname"
Bins are full month names, such as "January"
.datetime
only"monthofyear"
Bins are months from 1 to 12.
datetime
only"quarterofyear"
Bins are quarters from 1 to 4.datetime
only