diff options
Diffstat (limited to '26/CH7/EX7.1.1')
-rwxr-xr-x | 26/CH7/EX7.1.1/7_1_1.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/26/CH7/EX7.1.1/7_1_1.sce b/26/CH7/EX7.1.1/7_1_1.sce new file mode 100755 index 000000000..09fe0b631 --- /dev/null +++ b/26/CH7/EX7.1.1/7_1_1.sce @@ -0,0 +1,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
\ No newline at end of file |