Problem 2693. Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.
Solution Stats
Problem Comments
-
1 Comment
Guillaume
on 28 Nov 2014
You need a test case with a non-symmetric matrix. Otherwise, your test suite is too easily defeated.
Solution Comments
Show commentsProblem Recent Solvers124
Suggested Problems
-
306 Solvers
-
473 Solvers
-
07 - Common functions and indexing 3
417 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
153 Solvers
-
Replace every 3rd element in a vector with 4
253 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!