summaryrefslogtreecommitdiff
path: root/3808/CH2/EX2.18/Ex2_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '3808/CH2/EX2.18/Ex2_18.sce')
-rw-r--r--3808/CH2/EX2.18/Ex2_18.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3808/CH2/EX2.18/Ex2_18.sce b/3808/CH2/EX2.18/Ex2_18.sce
new file mode 100644
index 000000000..3890dc57d
--- /dev/null
+++ b/3808/CH2/EX2.18/Ex2_18.sce
@@ -0,0 +1,19 @@
+//Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices
+
+clc;
+clear;
+
+X = [[1,0,4],
+ [2,1,1],
+ [3,1,0],
+ [0,2,2]]
+
+Y = [[2,4],
+ [1,1],
+ [3,0]]
+
+result = X * Y
+
+mprintf("The multiplication of the two matrices XY is:")
+disp(result)
+