试图旋转3 d矩阵完全对称群(集团理论)
5视图(30天)
显示旧的评论
你好,
我目前有32 x32x32矩阵,我想把它所有可能的旋转(完整的对称集)和存储。
我的代码如下所示;
它使用一个数据集作为矩阵,然后旋转它在x轴在7个不同的方面,这给我8的24全套的旋转。有相同的功能,下面我所做的其他2轴(y和z) ?这我不能找到一个函数,我犹豫是否要重新映射所有手动自800.000的数据矩阵,我必须这样做。
矩阵=数据集(::,:,我);
matrix2 =翻转(矩阵);
matrix3 =翻转(矩阵,2);
matrix5 = rot90(矩阵);
matrix4 = rot90(矩阵,2);
matrix7 = rot90(矩阵,3);
matrix6 = rot90(翻转(矩阵));
matrix8 = rot90(翻转(矩阵),3);
7评论
1月
2021年3月7日
注意,rot3d90直接处理多维输入。所以你可以省略循环:
matrix2 = rot3d90 (1, 1);
matrix3 = rot3d90 (1, 2);
matrix4 = rot3d90 (1, 3);
matrix5 = rot3d90 (2, 2);
matrix6 = rot3d90 (matrix5 1 1);
matrix7 = rot3d90 (matrix5 1 2);
matrix8 = rot3d90 (matrix5, 1, 3);
matrix9 = rot3d90 (2, 1);
matrix10 = rot3d90 (2, 3);
matrix11 = rot3d90 (matrix9 3 1);
matrix12 = rot3d90 (matrix9 3 2);
matrix13 = rot3d90 (matrix9 3 3);
matrix14 = rot3d90 (matrix10 3 1);
matrix15 = rot3d90 (matrix10 3 2);
matrix16 = rot3d90 (matrix10 3 3);
matrix17 = rot3d90 (3,1);
matrix18 = rot3d90 (3 3);
matrix19 = rot3d90 (matrix17 2 1);
matrix20 = rot3d90 (matrix17 2 2);
matrix21 = rot3d90 (matrix17、2、3);
matrix22 = rot3d90 (matrix18 2 1);
matrix23 = rot3d90 (matrix18 2 2);
matrix24 = rot3d90 (matrix18、2、3);
p = [4, 1, 2, 3];
fullset =猫(1,…
交换(p),…
交换(matrix2 p),…
交换(matrix3 p),…
交换(matrix4 p),…
交换(matrix5 p),…
交换(matrix6 p),…
交换(matrix7 p),…
交换(matrix8 p),…
交换(matrix9 p),…
交换(matrix10 p),…
交换(matrix11 p),…
交换(matrix12 p),…
交换(matrix13 p),…
交换(matrix14 p),…
交换(matrix15 p),…
交换(matrix16 p),…
交换(matrix17 p),…
交换(matrix18 p),…
交换(matrix19 p),…
交换(matrix20 p),…
交换(matrix21 p),…
交换(matrix22 p),…
交换(matrix23 p),…
交换(matrix24 p));