Matlab doesn't recognise symmetric matrix

Hi, I create various matrices in matlab and check each of them if they're symmetric or not. However when I create a matrix:
M = [5 1 3; 2 0 2; 3 1 5;]
5 1 3
M = 2 0 2
3 1 5
The matrix is symmetric but when I run
tf = issymmetric(M)
I still get 0 which states it's not symmetric.
What am I doing wrong here?
Thank you.

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Oct. de 2016

1 voto

For MATLAB purposes (as is common), "symmetric" refers to symmetric along the main diagonal.
Your candidate matrix is not symmetric along any axis: instead it is rotationally invariant for a 180 degree rotation.

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Preguntada:

N/A
el 28 de Oct. de 2016

Respondida:

el 28 de Oct. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by