帮助中心帮助中心
MATLAB® 中的许多函数在处理日期和时间数组时与处理其他数组并无不同。
下表列出了除处理常规数组外还可处理 datetime、duration 和 calendarDuration 数组的常见 MATLAB 函数。
datetime
duration
calendarDuration
size length ndims numel
size
length
ndims
numel
isrow iscolumn
isrow
iscolumn
cat horzcat vertcat
cat
horzcat
vertcat
permute reshape transpose ctranspose
permute
reshape
transpose
ctranspose
linspace
isequal isequaln
isequal
isequaln
eq ne lt le ge gt
eq
ne
lt
le
ge
gt
sort sortrows issorted
sort
sortrows
issorted
intersect ismember setdiff setxor unique union
intersect
ismember
setdiff
setxor
unique
union
abs floor ceil round
abs
floor
ceil
round
min max mean median mode
min
max
mean
median
mode
plus minus uminus times rdivide ldivide mtimes mrdivide mldivide diff sum
plus
minus
uminus
times
rdivide
ldivide
mtimes
mrdivide
mldivide
diff
sum
char string cellstr
char
string
cellstr
plot plot3 scatter scatter3 bar barh histogram
plot
plot3
scatter
scatter3
bar
barh
histogram
stem stairs area mesh surf surface
stem
stairs
area
mesh
surf
surface
semilogx semilogy fill fill3 line text
semilogx
semilogy
fill
fill3
line
text
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office