summaryrefslogtreecommitdiff
path: root/3808/CH2/EX2.18/Ex2_18.sce
blob: 3890dc57d7c88f2247d5508baca1d09a67f039b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)