![]() |
如何在Matlab中连接矩阵
我在Matlab中有n个dxd矩阵,我想将它们连接起来以获得dxdxn矩阵,其中(:,:,i)是第i个矩阵(i = 1..n)。我怎样才能做到这一点?
[B]回答:[/B] 使用[URL="http://www.mathworks.com/help/techdoc/ref/cat.html"]CAT[/URL] out = cat(3,mat1,mat2,mat3,...,matN); 如果数组是单元数组的元素, out = cat(3,cellArray{:}); [url=https://stackoverflow.com/questions/5452005]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:11。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.