How to find the symmetric and skew symmetric part of a specified matrix?

41 views (last 30 days)
Thanks
  1 Comment
John Staine
John Staine on 18 May 2018
Given a 2x2 matrix Z how would I code to find the matrices P & Q given by the symmetric and skew symmetric parts of Z?

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 17 May 2018
Edited: the cyclist on 17 May 2018
A_sym = (A+A.')/2;
A_anti = (A-A.')/2;
The .' operation is the transpose.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!