Find the symmetric and skew-symmetric matrices by 2x2 blocks
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I need to extract from 2n by 2n matrix the symetric and skew-symetric 2x2 blocks:
For example, for given A:
A=[
0,-1, 2,3;
1,0, 4,2;
-2,3, 0,-1;
4,-2, 1,0;
]
I want to get:
A_symetric= [
0,-1, 0,3;
1,0, 4,0;
0,3, 0,-1;
4,0, 1,0;
]
And
A_skew_symetric= [
0,0, 2,0;
0,0, 0,2;
-2,0, 0,0;
0,-2, 0,0;
]
1 个评论
Matt J
2021-1-10
It is unclear why you consider A_symmetric to be blockwise symmetric. The 2x2 submatrix
0,3,
4,0,
is not symmetric.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!