主题
:
如何在Matlab中连接矩阵
查看单个帖子
2019-12-14, 20:46
#
1
poster
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力:
66
如何在Matlab中连接矩阵
我在Matlab中有n个dxd矩阵,我想将它们连接起来以获得dxdxn矩阵,其中(:,:,i)是第i个矩阵(i = 1..n)。我怎样才能做到这一点?
回答:
使用
CAT
out = cat(3,mat1,mat2,mat3,...,matN); 如果数组是单元数组的元素,
out = cat(3,cellArray{:});
更多&回答...
poster
查看公开信息
发送悄悄话给 poster
查找 poster 发表的更多帖子