MATLAB Answers

0

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

Asked by John Staine on 17 May 2018 at 19:22
Latest activity Commented on by John Staine on 18 May 2018 at 14:31

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 at 19:58
Edited by the cyclist
on 17 May 2018 at 19:59
 Accepted Answer

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

The .' operation is the transpose.

  0 Comments

Sign in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today