Introduction to Matrices - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Introduction to Matrices

Description:

System of Linear Equations. A matrix can be used to represent a system of Linear equations ... a System of Linear Equations. b31. x31. a33. a33. a31. b21. x21 ... – PowerPoint PPT presentation

Number of Views:606
Avg rating:3.0/5.0
Slides: 17
Provided by: wfar1
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Matrices


1
Introduction to Matrices
  • ME-190
  • Jan. 2004
  • Dr. W. Farrow

2
Square Matrix
  • Order 3 x 3 (since m n it can be written 3)
  • Matlab definition
  • A a11 a12 a13 a21 a22 a23 a31 a32 a33

3
Column Matrix (Column Vector)
  • Order 3 x 1
  • Matlab definition
  • A a11 a21 a31

4
Row Matrix (Row Vector)
  • Order 1 x 3
  • Matlab definition
  • A a11 a12 a13

5
General Matrix Form
  • Order m x n (m - of rows, n - of
    columns)
  • Matlab definition
  • A a11 a12 a1n a21 a22 a2n a31 a32 a3n
  • am1 am2 amn

6
Zero Matrix
  • Order m x n (m - of rows, n - of
    columns)
  • Matlab definition
  • A zeros(m, n)

7
Square Zero Matrix
  • Order n ( for this example 3)
  • Matlab definition
  • A zeros(n)

8
Ones Matrix
  • Order m x n (m - of rows, n - of
    columns)
  • Matlab definition
  • A ones(m, n)

9
Random Number Matrix
  • Fills the matrix with random numbers 0 lt a lt 1
  • Order m x n (m - of rows, n - of
    columns)
  • Matlab definition
  • A rand(m, n)

10
Identity Matrix
  • Order n ( for this example 3)
  • Matlab definition
  • A eye(n)

11
System of Linear Equations
  • A matrix can be used to represent a system of
    Linear equations
  • a11 x1 a12 x2 a13x3 b1
  • a21 x1 a22 x2 a23x3 b2
  • a31 x1 a32 x2 a33x3 b3
  • A X B

12
Matrix Representation ofa System of Linear
Equations
  • AX B

13
Array Operationsvs Matrix Operations
  • Addition Subtraction
  • Same for both Arrays and Matrices
  • Add corresponding elements
  • Both must have same order

14
Array Operationsvs Matrix Operations
  • Addition Subtraction
  • MatLab syntax
  • C A B or C A - B

15
Array Operationsvs Matrix Operations
  • Multiplication of Arrays .
  • Different than for Matrices
  • Multiply corresponding elements
  • Both must have same order or one must be scalar

16
Array Operationsvs Matrix Operations
  • Multiplication of Matrices (linear algebraic
    operation)
  • Multiply elements of rows in matrix on left, with
    corresponding elements of column in matrix on
    right, sum the results and place in new matrix
  • The matrices must be conformable or one must be
    scalar
Write a Comment
User Comments (0)
About PowerShow.com