多个矩阵提取同一位置的元素组成新的矩阵。
2 views (last 30 days)
Show older comments
新锦江娱乐怎么开户【微8785092】
on 21 May 2023
Answered: 新锦江娱乐注册网址【微8785092】
on 21 May 2023
提取上述九个矩阵相同位置的元素放到一个元胞中,这个元胞是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)]

0 Comments
Accepted Answer
新锦江娱乐注册网址【微8785092】
on 21 May 2023
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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!