MATLAB 帮助中心
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
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处