多个矩阵提取同一位置的元素组成新的矩阵。
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
新锦江娱乐怎么开户【微8785092】
am 21 Mai 2023
Beantwortet: 新锦江娱乐注册网址【微8785092】
am 21 Mai 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 Kommentare
Akzeptierte Antwort
新锦江娱乐注册网址【微8785092】
am 21 Mai 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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!