Core Functions Supporting Date and Time Arrays
Many functions in MATLAB operate on date and time arrays in much the same way that
they operate on other arrays.This table lists notable MATLAB functions that operate on datetime, duration, and
calendarDuration arrays in addition to other arrays.size
length
ndims
numelisrow
iscolumncat
horzcat
vertcatpermute
reshape
transpose
ctransposelinspaceisequal
isequalneq
ne
lt
le
ge
gtsort
sortrows
issortedintersect
ismember
setdiff
setxor
unique
unionabs
floor
ceil
roundmin
max
mean
median
modeplus
minus
uminus
times
rdivide
ldivide
mtimes
mrdivide
mldivide
diff
sumchar
string
cellstrplot
plot3
scatter
scatter3
bar
barh
histogramstem
stairs
area
mesh
surf
surfacesemilogx
semilogy
fill
fill3
line
text7 Dates and Time