主要内容

矩阵运算

R2026b
用于操作矩阵和处理数组的模块,例如 Transpose、Matrix Concatenate 和 Cross Product

使用 Matrix Operations 库中的模块操作矩阵和处理数组。您可以对矩阵进行转置、串联和置换,创建对角矩阵和单位矩阵,检查矩阵属性,并按元素或按邻域处理数组。

要将此库中的模块添加到您的模型,请参阅向模型添加模块。

模块

Array Processing Subsystem blockArray Processing SubsystemApply algorithm to each element of a matrix (自 R2024a 起)
Create Diagonal Matrix blockCreate Diagonal Matrix根据对角元素创建方对角矩阵
Cross Product blockCross Product两个向量的叉积
Expand Scalar blockExpand ScalarCreate matrix from scalar using scalar expansion (自 R2024a 起)
Extract Diagonal blockExtract DiagonalExtract main diagonal of input matrix
Hermitian Transpose blockHermitian Transpose计算矩阵的埃尔米特转置
Identity Matrix blockIdentity MatrixGenerate matrix with ones on main diagonal and ground values elsewhere
Is Hermitian blockIsHermitianCheck if matrix is Hermitian or skew-Hermitian (自 R2022a 起)
IsSymmetric blockIsSymmetric检查矩阵是否对称或斜对称
Is Triangular blockIsTriangularCheck if matrix is upper or lower triangular
Matrix Concatenate blockMatrix Concatenate串联相同数据类型的输入矩阵以进行迭代处理
Matrix Square blockMatrix SquareCompute square of input matrix
Neighborhood Processing Subsystem blockNeighborhood Processing SubsystemCreate algorithm that follows the neighborhood pattern (自 R2022b 起)
Permute Matrix blockPermute MatrixReorder matrix rows or columns
Pixel Processing Subsystem blockPixel Processing SubsystemCreate algorithm that converts multichannel image data to single-channel (自 R2024a 起)
Submatrix blockSubmatrixSelect subset of elements (submatrix) from matrix input
Transpose blockTranspose计算矩阵转置

工具

库浏览器查找并向模型添加模块

主题