The matrix is Hermitian and has a real-valued diagonal.
Test whether the matrix is symmetric.
tf = issymmetric(A)
tf = logical
0
The result is logical 0 (false) because A is not symmetric. In this case, A is equal to its complex conjugate transpose, A', but not its nonconjugate transpose, A.'.
Change the element in A(3,1) to be 1i.
A(3,1) = 1i;
Determine whether the modified matrix is symmetric.
tf = issymmetric(A)
tf = logical
1
The matrix, A, is now symmetric because it is equal to its nonconjugate transpose, A.'.