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

2 vues (au cours des 30 derniers jours)
新锦江娱乐怎么开户【微8785092】
提取上述九个矩阵相同位置的元素放到一个元胞中,这个元胞是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)]

Réponse acceptée

新锦江娱乐注册网址【微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));

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 快速入门 dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!