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
numel
isrow
iscolumn
cat
horzcat
vertcat
permute
reshape
transpose
ctranspose
linspace
isequal
isequaln
eq
ne
lt
le
ge
gt
sort
sortrows
issorted
intersect
ismember
setdiff
setxor
unique
union
abs
floor
ceil
round
min
max
mean
median
mode
plus
minus
uminus
times
rdivide
ldivide
mtimes
mrdivide
mldivide
diff
sum
char
string
cellstr
plot
plot3
scatter
scatter3
bar
barh
histogram
stem
stairs
area
mesh
surf
surface
semilogx
semilogy
fill
fill3
line
text
7 Dates and Time