Matrices in Excel: Matrix A (A Row Vector) Matrix B (Square 3 X 3 Matrix) Matrix C (Column Vector)

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 14

UN-20E

A B C D E F G H I
1 MATRICES IN EXCEL

Matrix C
2 Matrix A (a row vector) Matrix B (square 3 x 3 matrix) (column
vector)

3 2 3 4 13 -8 -3 13
4 -8 10 -1 -8
5 -3 -1 11 -3
6
7 Matrix D (a 4 x 3 matrix)
8 13 -8 -3
9 -8 10 -1
10 -3 -1 11
11 0 13 3
A B C D E

1 MULTIPLYING A MATRIX BY A SCALAR


2 Scalar 6
3
4 Matrix B 13 -8 -3
5 -8 10 -1
6 -3 -1 11
7
8 Scalar * Matrix B
9 78 -48 -18 #VALUE!
10 -48 60 -6
11 -18 -6 66
A B C D E F G H
1 ADDITION OF MATRICES
2 Matrix A Matrix B Sum of A + B
3 1 3 0.1 0 1.1 3
4 3 0 23 0 26 0
5 6 -9 8 -33.4 14 -42.4
6 5 11 -15 0 -10 11
7 7 12 2.33 1.2 9.33 13.2
I
TRICES 1
2
3 #VALUE!
4
5
6
7
A B C D E F G H
1 TRANSPOSITION OF MATRICES
2 Matrix E Transpose of E: ET
3 1 2 3 4 1 0 16
4 0 3 77 -9 2 3 7
5 16 7 7 2 3 77 7
6 4 -9 2
7
Cells F3:H6 are generated with the array function Transpose(A3:D5). This function is inserted by marking off the target
8
area, typing the formula, and then finishing by pressing [Ctrl]+[Shift]+[Enter] . See Chapter 35 for more details.
I
ATRICES 1
2
3 #VALUE!
4
5
6
7
his function is inserted by marking off the target
8
nter] . See Chapter 35 for more details.
A B C D E F
1 MULTIPLYING MATRICES
2 Matrix A Matrix B
3 2 -7 6 9 -12
4 0 3 -5 2 4
5
6 Product AB
7 47 4 -52 #VALUE!
8 -15 6 12
A B C D E F
MATRIX MULTIPLICATION:
1 Number of columns of first matrix must equal
number of rows of second matrix
Can't multiply matrix B times matrix A!
2 Matrix A Matrix B
3 2 -7 6 9 -12
4 0 3 -5 2 4
5
6 Product BA
7 Err:502 Err:502 Err:502 #VALUE!
8 Err:502 Err:502 Err:502
A B C D E F G H

1
MATRIX INVERSE
Use array function Minverse to compute the inverse of a square matrix
2 Matrix A Inverse of A
3 1 -9 16 1 -0.0217 1.8913 0.5362
4 3 3 2 3 0.0000 -1.0000 -0.1667
5 2 4 0 -2 0.0652 -0.6739 -0.1087
6 5 7 3 4 -0.0217 -0.1087 -0.2971
7
8 Verifying the inverse
9 #VALUE!

10 1 9.021E-16 -2.220446E-16 9.71445E-16


11 -1.39E-17 1 -1.110223E-16 0
12 -6.94E-18 -2.78E-17 1 -1.66533E-16
13 0 5.551E-17 -4.440892E-16 1
I J
E 1
inverse of a square matrix
Inverse of A 2
3 -1.1449 #VALUE!
4 0.6667
5 0.4348
6 0.1884
7
8

10
11
12
13
A B C D E F G H

1
MATRIX INVERSE
Use array function Minverse to compute the inverse of a square matrix
2 Matrix A Inverse of A
3 1 -9 16 1 -0.0217 1.8913 0.5362
4 3 3 2 3 0.0000 -1.0000 -0.1667
5 2 4 0 -2 0.0652 -0.6739 -0.1087
6 5 7 3 4 -0.0217 -0.1087 -0.2971
7
8 Verifying the inverse
9 #VALUE!

10 1.0000 0.0000 0.0000 0.0000


11 0.0000 1.0000 0.0000 0.0000
12 0.0000 0.0000 1.0000 0.0000
13 0.0000 0.0000 0.0000 1.0000
I J
E 1
inverse of a square matrix
Inverse of A 2
3 -1.1449 #VALUE!
4 0.6667
5 0.4348
6 0.1884
7
8

10
11
12
13
A B C D E F G
1 SOLVING SIMULTANEOUS EQUATIONS
Column Solution
2 Matrix A of coefficients
vector y A-1 Y
3 3 4 66 16 0.4343
4 0 -33 1 77 -2.3223
5 42 3 2 12 0.3634
6
7 Checking that the solution works
8 16
9 77 #VALUE!
10 12
H
ANEOUS EQUATIONS
1

3
4 #VALUE!
5
6
7
8
9
10

You might also like