Matlab doesn't recognise symmetric matrix
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Walter Roberson
2016-10-28
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!