文档帮助中心
本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
矩阵和数组是 MATLAB® 中信息和数据的基本表示形式。您可以创建常用的数组和网格、合并现有数组、操作数组的形状和内容,以及使用索引访问数组元素。有关矩阵和数组处理的概述,请观看处理数组。
全部展开
zeros
ones
rand
true
false
eye
diag
blkdiag
cat
horzcat
vertcat
repelem
repmat
linspace
logspace
freqspace
meshgrid
ndgrid
length
size
ndims
numel
isscalar
issorted
issortedrows
isvector
ismatrix
isrow
iscolumn
isempty
sort
sortrows
flip
fliplr
flipud
rot90
transpose
ctranspose
permute
ipermute
circshift
shiftdim
reshape
squeeze
colon
for
end
ind2sub
sub2ind
创建、串联和扩展矩阵
创建矩阵或根据其他矩阵来构造矩阵。
数组索引
访问数组的元素。
从矩阵中删除行或列
删除矩阵的行或列。
重构和重新排列数组
更改现有数组中元素的形状或排列。
多维数组
创建和操作具有三个或更多维度的数组。
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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