res = issymmetric(x)
res = issymmetric(x, 'skew')
res = issymmetric(x, 'nonskew')
res = issymmetric(x, tol)
| Parameter | Description |
|---|---|
| x | a numeric value: scalar or matrix (double or single, integers, logical). |
| tol | a numeric value: finite and >= 0. |
| Parameter | Description |
|---|---|
| res | a logical. |
issymmetric(x) computes if matrix is symmetric.
With 'nonskew' argument, x square matrix, x is symmetric if it is equal to its nonconjugate transpose, x = x.'
With 'skew' argument, x square matrix, x is symmetric if it is equal to its nonconjugate transpose, x = -x.'
issymmetric([1, 2; 2, 1])
issymmetric([1, 2.1; 2, 1.1], 0.2)
A = [0 1 -2 5; -1 0 3 -4; 2 -3 0 6; -5 4 -6 0];
issymmetric(A, 'skew')
issymmetric(A, 'nonskew')
| Version | Description |
|---|---|
| 1.0.0 | initial version |