CMPS 1371 Introduction to Computing for Engineers MATRICES.

Slides:



Advertisements
Similar presentations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Advertisements

Slide deck by Dr. Greg Reese Miami University MATLAB An Introduction With Applications, 5 th Edition Dr. Amos Gilat The Ohio State University Chapter 3.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Refresher: Vector and Matrix Algebra Mike Kirkpatrick Department of Chemical Engineering FAMU-FSU College of Engineering.
Matrices & Systems of Linear Equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
3_3 An Useful Overview of Matrix Algebra
Linear Algebraic Equations
Matrices. Special Matrices Matrix Addition and Subtraction Example.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
GG313 Lecture 12 Matrix Operations Sept 29, 2005.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrix Mathematics in MATLAB and Excel
Chapter 5 Determinants.
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Intro to Matrices Don’t be scared….
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Modified Gary Larson Far Side cartoon
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 10 Review: Matrix Algebra
MATLAB FUNDAMENTALS: INTRO TO LINEAR ALGEBRA NUMERICAL METHODS HP 101 – MATLAB Wednesday, 11/5/2014
ECON 1150 Matrix Operations Special Matrices
Presentation on Matrices and some special matrices In partial fulfillment of the subject Vector calculus and linear algebra ( ) Submitted by: Agarwal.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrix Entry or element Rows, columns Dimensions Matrix Addition/Subtraction Scalar Multiplication.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
CSE123 Lecture 5 Arrays and Array Operations. Definitions Scalars: Variables that represent single numbers. Note that complex numbers are also scalars,
Array Addition  Two arrays can be added if and only if both arrays have exactly the same dimensions.  Assuming the dimension requirement is satisfied,
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
Learner’s Guide to MATLAB® Chapter 2 : Working with Arrays.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Fin500J Mathematical Foundations in Finance Topic 1: Matrix Algebra Philip H. Dybvig Reference: Mathematics for Economists, Carl Simon and Lawrence Blume,
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Lecture 28: Mathematical Insight and Engineering.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Examples of linear transformation matrices Some special cases of linear transformations of two-dimensional space R 2 are illuminating:dimensional Dimoffree.svgDimoffree.svg‎
A string is an array of characters Strings have many uses in MATLAB Display text output Specify formatting for plots Input arguments for some functions.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 9 Gauss Elimination The Islamic University of Gaza
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
1 Lecture 3 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Finishing up Chapter 5. Will this code enter the if statement? G=[30,55,10] if G
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Linear Algebra Review Tuesday, September 7, 2010.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 8 Linear Algebraic Equations and Matrices.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
MTH108 Business Math I Lecture 20.
EEE 244-3: MATRICES AND EQUATION SOLVING
Linear Algebraic Equations and Matrices
ECE 1304 Introduction to Electrical and Computer Engineering
Chapter 7 Matrix Mathematics
Linear Algebraic Equations and Matrices
Matrix Operations SpringSemester 2017.
Unit 3: Matrices
EEE 244-3: MATRICES AND EQUATION SOLVING
Matrix Operations SpringSemester 2017.
Game Programming Algorithms and Techniques
Presentation transcript:

CMPS 1371 Introduction to Computing for Engineers MATRICES

Matrix vs Array The difference between an array and a matrix Most engineers use the two terms interchangeably The only time you need to be concerned about the difference is when you perform matrix algebra calculations

Arrays Technically an array is an orderly grouping of information Arrays can contain numeric information, but they can also contain character data, symbolic data etc.

Matrix The technical definition of a matrix is a two-dimensional numeric array used in linear algebra Not even all numeric arrays can precisely be called matrices - only those upon which you intend to perform linear transformations meet the strict definition of a matrix.

Matrix Algebra used extensively in engineering applications Matrix algebra is different from the array calculations we have performed thus far

Array Operators  A.*Bmultiplies each element in array A times the corresponding element in array B  A./B divides each element in array A by the corresponding element in array B  A.^B raises each element in array A to the power in the corresponding element of array B

Operators used in Matrix Mathematics Transpose Multiplication Division Exponentiation Left Division

Some Matrix Algebra functions Dot products Cross products Inverse Determinants

Transpose In mathematics texts you will often see the transpose indicated with superscript T A T The MATLAB syntax for the transpose is A'

The transpose switches the rows and columns

Transpose

Using the transpose with complex numbers When used with complex numbers, the transpose operator returns the complex conjugate

Dot Products The dot product is sometimes called the scalar product the sum of the results when you multiply two vectors together, element by element.

Equivalent statements

Matrix Multiplication Similar to a dot product Matrix multiplication results in an array where each element is a dot product. In general, the results are found by taking the dot product of each row in matrix A with each column in Matrix B

Matrix Multiplication

Because matrix multiplication is a series of dot products the number of columns in matrix A must equal the number of rows in matrix B For an mxn matrix multiplied by an nxp matrix m x n n x p These dimensions must match The resulting matrix will have these dimensions Matrix Multiplication

Matrix Powers Raising a matrix to a power is equivalent to multiplying it times itself the requisite number of times A 2 is the same as A*A A 3 is the same as A*A*A Raising a matrix to a power requires it to have the name number of rows and columns

Matrix Inverse MATLAB offers two approaches The matrix inverse function inv(A)‏ Raising a matrix to the -1 power A -1

A matrix times its inverse is the identity matrix Equivalent approaches to finding the inverse of a matrix

Not all matrices have an inverse These matrices are called: Singular Ill-conditioned matrices Attempting to take the inverse of a singular matrix results in an error statement

Determinants Related to the matrix inverse If the determinant is equal to 0, the matrix does not have an inverse The MATLAB function to find a determinant is det(A)‏

Cross Products sometimes called vector products the result of a cross product is a vector always at right angles (normal) to the plane defined by the two input vectors orthogonality

Consider two vectors The cross product is equal to…

Cross Products

Cross Products are Widely Used Cross products find wide use in statics, dynamics, fluid mechanics and electrical engineering problems

Solutions to Systems of Linear Equations

Using Matrix Nomenclature and AX=B

We can solve this problem using the matrix inverse approach This approach is easy to understand, but its not the more efficient computationally

Matrix left division uses Gaussian elimination, which is much more efficient, and less prone to round-off error

Special Matrices We introduced some of MATLAB’s special matrices in previous chapters ones zeros

Identity Matrix It may be tempting to name an identity matrix i, however i is already in-use for imaginary numbers The identity matrix is another special matrix that is useful in Matrix Algebra

Other Matrices MATLAB includes a number of matrices that are useful for testing numerical techniques, computational algorithms, or that are just interesting pascal magic Rosser gallery – contains over 50 different test matrices