MATLAB Answers

0

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

Asked by John Staine on 17 May 2018
Latest activity Commented on by John Staine on 18 May 2018

Thanks

  1 Comment

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.

1 Answer

Answer by the cyclist
on 17 May 2018
Edited by the cyclist
on 17 May 2018
 Accepted Answer

A_sym = (A+A.')/2;
A_anti = (A-A.')/2;

The .' operation is the transpose.

  0 Comments

Sign in to comment.