blob: 09fe0b631a56b5f4322f044406cd642a7bef0bdc (
plain)
1
2
3
4
5
6
7
8
|
disp('To check if the given 2X2 matrix is symmetric')
a=[3 5;5 -7]
disp(a,'A=')
if(a(1,2)==a(2,1))
disp('A is a symmetric matrix because the (1,2) and(2,1) entries match.')
else
disp('A is not a symmetric matrix')
end
|