Lecture 6 - Augmentation a11 a A = 21 a 31 a 41 a12 a 22 a...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
= 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 a a a a a a a a a a a a a a a a A 44 43 42 41 34 33 32 31 24 23 22 21 14 13 12 11 = 44 43 42 41 34 33 32 31 24 23 22 21 14 13 12 11 a a a a a a a a a a a a a a a a A Augmentation Whatever you do to left-hand-side, do to the right- hand side (useful when solving system of equations)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
[ ] = 4 44 43 42 41 3 34 33 32 31 2 24 23 22 21 1 14 13 12 11 b a a a a b a a a a b a a a a b a a a a b A Augmented Matrix 4 4 44 3 43 2 42 1 41 3 4 34 3 33 2 32 1 31 2 4 24 3 23 2 22 1 21 1 4 14 3 13 2 12 1 11 b x a x a x a x a b x a x a x a x a b x a x a x a x a b x a x a x a x a = + + + = + + + = + + + = + + +
Background image of page 2
MATLAB Matrix Manipulations >> A = [1 5 3 -4; 2 5 6 -1; 3 4 -2 5; -1 3 2 6] A = 1 5 3 -4 2 5 6 -1 3 4 -2 5 -1 3 2 6 >> A' ans = 1 2 3 -1 5 5 4 3 3 6 -2 2 -4 -1 5 6 Create a matrix Matrix transpose
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MATLAB Matrix Manipulations >> x = [5 1 -2 3]; >> y = [2 -1 4 2]; >> z = [3 -2 1 -5]; >> B = [x; y; x; z] B = 5 1 -2 3 2 -1 4 2 5 1 -2 3 3 -2 1 -5 >> C = A + B C = 6 6 1 -1 4 4 10 1 8 5 -4 8 2 1 3 1 >> C = C – B ( = A) C = 1 5 3 -4 2 5 6 -1 3 4 -2 5 -1 3 2 6 Matrix Concatenation Addition and Subtraction
Background image of page 4
MATLAB Matrix Manipulations A = 1 5 3 -4 2 5 6 -1 3 4 -2 5 -1 3 2 6 B = 5 1 -2 3 2 -1 4 2 5 1 -2 3 3 -2 1 -5 >> A*B ans = 18 7 8 42 47 5 3 39 28 -13 19 -14 29 -14 16 -21 >> A.*B ans = 5 5 -6 -12 4 -5 24 -2 15 4 4 15 -3 -6 2 -30 Matrix multiplication and element-by-element operation A*B A*B A.*B A.*B
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MATLAB Matrix Manipulations >> D = [2 4 3 1; 3 -5 1 2; 1 -1 3 2]
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

Lecture 6 - Augmentation a11 a A = 21 a 31 a 41 a12 a 22 a...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online