多个矩阵提取同一位置的元素组成新的矩阵。

2 次查看(过去 30 天)
提取上述九个矩阵相同位置的元素放到一个元胞中,这个元胞是41*41的,元胞里的每个数组是3*3的。
例如G{1,2}=[g1(1,2) g2(1,2) g3(1,2); g4(1,2) g5(1,2) g6(1,2); g7(1,2) g8(1,2) g9(1,2)]

采纳的回答

新锦江娱乐注册网址【微8785092】
gg=permute(cat(3,g1,g4,g7,g2,g5,g8,g3,g6,g9),[3,1,2]);
G = mat2cell(col2im(reshape(gg1,9,41*41),[3 3],[123 123],'distinct'),3*ones(1,41),3*ones(1,41));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 快速入门 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!