怎样用matlab去定义四元数矩阵?有现成的函数吗?
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 23:01:59
怎样用matlab去定义四元数矩阵?有现成的函数吗?
怎样用matlab去定义四元数矩阵?有现成的函数吗?
怎样用matlab去定义四元数矩阵?有现成的函数吗?
是四维矩阵吗
>> A=rand(3,3,3,3)
A(:,:,1,1) =
0.8147 0.9134 0.2785
0.9058 0.6324 0.5469
0.1270 0.0975 0.9575
A(:,:,2,1) =
0.9649 0.9572 0.1419
0.1576 0.4854 0.4218
0.9706 0.8003 0.9157
A(:,:,3,1) =
0.7922 0.0357 0.6787
0.9595 0.8491 0.7577
0.6557 0.9340 0.7431
A(:,:,1,2) =
0.3922 0.7060 0.0462
0.6555 0.0318 0.0971
0.1712 0.2769 0.8235
A(:,:,2,2) =
0.6948 0.0344 0.7655
0.3171 0.4387 0.7952
0.9502 0.3816 0.1869
A(:,:,3,2) =
0.4898 0.7094 0.6797
0.4456 0.7547 0.6551
0.6463 0.2760 0.1626
A(:,:,1,3) =
0.1190 0.3404 0.7513
0.4984 0.5853 0.2551
0.9597 0.2238 0.5060
A(:,:,2,3) =
0.6991 0.5472 0.2575
0.8909 0.1386 0.8407
0.9593 0.1493 0.2543
A(:,:,3,3) =
0.8143 0.3500 0.6160
0.2435 0.1966 0.4733
0.9293 0.2511 0.3517