diff options
Diffstat (limited to '260/CH1/EX1.16')
-rw-r--r-- | 260/CH1/EX1.16/1_16.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/260/CH1/EX1.16/1_16.sce b/260/CH1/EX1.16/1_16.sce new file mode 100644 index 000000000..7cb207893 --- /dev/null +++ b/260/CH1/EX1.16/1_16.sce @@ -0,0 +1,16 @@ +//Eg-1.16
+//pg-35
+
+clear
+clc
+
+a=[0.5 0.5 -0.5;0.5 1 -1;-1 0.5 0.5];
+
+printf('The given matrix is \n\n')
+disp(a)
+
+printf('The program prints the elements of the matrix as the following\n\n')
+
+for i=1:9
+ printf("a(%d) = %f\n",i,a(i))
+end
\ No newline at end of file |