我在Matlab中有n个dxd矩阵,我想将它们连接起来得到一个dxdxn矩阵,其中(:,:,i)是第i个矩阵(i=1..n)。我该如何做?
out = cat(3,mat1,mat2,mat3,...,matN);
out = cat(3,cellArray{:});