MATLAB Answers

Matrix symmetric by 2x2 blocks

1 view (last 30 days)
Ohad Shapira
Ohad Shapira on 9 Jan 2021
Edited: Ohad Shapira on 9 Jan 2021
Hello everyone,
I need to extract from 2n by 2n matrix the symetric and skew-symetric 2x2 blocks.
For example, for given A:
A=[
5,-1, 2,-3;
1,5, 4,2;
-2,3, 5,-1;
4,-2, 1,5;
]
I want to get:
A_symetric= [
5,-1, 0,0;
1,5, 4,0;
0,0, 5,-1;
4,0, 1,5;
]
And
A_skew_symetric= [
0,0, 2,3;
0,0, 0,2;
-2,-3, 0,0;
0,-2, 0,0;
]
  2 Comments
Image Analyst
Image Analyst on 9 Jan 2021
OK, and the question is.................
Or is that your answer?

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!