Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 1Winter Quarter MATLAB: Simultaneous Equations Lecture 22.

Slides:



Advertisements
Similar presentations
4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
Advertisements

1 Systems of Linear Equations & Matrices Sections 4.2 & 4.3 After today’s lesson, you will be able to Use terms associated with matrices. Set up and solve.
Section 4.6 (Rank).
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
ECE201 Lect-91 Nodal Analysis (3.1) Dr. Holbert February 22, 2006.
Here is a preview of one type of problem we are going to solve using matrices. Solve this system of equations:
EGR 106 – Week 4 – Math on Arrays
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.
Using Inverse Matrices Solving Systems. You can use the inverse of the coefficient matrix to find the solution. 3x + 2y = 7 4x - 5y = 11 Solve the system.
1 Systems of Linear Equations & Matrices Sections 4.2 & 4.3 After today’s lesson, you will be able to Use terms associated with matrices. Set up and solve.
Warm-Up. Reduced Row Echelon Form (RREF) Learning Targets  Possible solutions for a system  The differences between RREF and Inverse Multiplication.
Multivariate Linear Systems and Row Operations.
Table of Contents Solving Linear Systems of Equations - Calculator Methods Consider the following augmented matrix... The rows can be written as... Row.
© 2005 Baylor University Slide 1 Fundamentals of Engineering Analysis EGR 1302 Unit 1, Lecture F Approximate Running Time - 24 minutes Distance Learning.
EGR 1101 Unit 7 Systems of Linear Equations in Engineering (Chapter 7 of Rattan/Klingbeil text)
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 21P. 1Winter Quarter MATLAB: Structures.
Chapter 10 Review: Matrix Algebra
Reduced Row Echelon Form Matrices and the Calculator.
THU, JAN 8, 2015 Create a “Big Book of Matrices” flip book using 4 pages. Do not make your tabs big! BIG BOOK OF MATRICES What is a Matrix? Adding & Subtracting.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
8.1 Matrices and Systems of Equations. Let’s do another one: we’ll keep this one Now we’ll use the 2 equations we have with y and z to eliminate the y’s.
Objective: Students will solve systems of equations using inverse matrices.
4.5 Solving Systems using Matrix Equations and Inverses.
4.4 & 4.5 Notes Remember: Identity Matrices: If the product of two matrices equal the identity matrix then they are inverses.
4.6 Matrix Equations and Systems of Linear Equations In this section, you will study matrix equations and how to use them to solve systems of linear equations.
4.5 Solving Systems using Matrix Equations and Inverses OBJ: To solve systems of linear equations using inverse matrices & use systems of linear equations.
Section 3.6 – Solving Systems Using Matrices
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
The inverse of a Square Matrix 2.1 Day 1 (Out of Pre-Calc book 8.3) We are reloading for another chapter.
Lecture 28: Mathematical Insight and Engineering.
8.3 Another Way of Solving a System of Equations Objectives: 1.) Learn to find the inverse matrix 2.) Use the inverse matrix to a system of equations.
1. Inverse of A 2. Inverse of a 2x2 Matrix 3. Matrix With No Inverse 4. Solving a Matrix Equation 1.
4.7 Identity and Inverse Matrices and Solving Systems of Equations Objectives: 1.Determine whether two matrices are inverses. 2.Find the inverse of a 2x2.
13.6 MATRIX SOLUTION OF A LINEAR SYSTEM.  Examine the matrix equation below.  How would you solve for X?  In order to solve this type of equation,
Goal: Solve a system of linear equations in two variables by the linear combination method.
4.6: Rank. Definition: Let A be an mxn matrix. Then each row of A has n entries and can therefore be associated with a vector in The set of all linear.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Matrices and Systems of Linear Equations
Solve a system of linear equations By reducing a matrix Pamela Leutwyler.
Class 7: Answers 1 (C) Which of the following matrices below is in reduced row echelon form? A B C D. None of them.
10.3 Systems of Linear Equations: Matrices. A matrix is defined as a rectangular array of numbers, Column 1Column 2 Column jColumn n Row 1 Row 2 Row 3.
1 ECE 1304 Introduction to Electrical and Computer Engineering Section 1.7 Linear Algebra with MATLAB.
Do Now (3x + y) – (2x + y) 4(2x + 3y) – (8x – y)
Elimination method Solving linear equations simultaneously.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 22P. 1Winter Quarter MATLAB: Simultaneous.
Warm- Up Solve the following systems using elimination or substitution : 1. x + y = 6 -3x + y = x + 4y = 7 x + 2y = 7.
1.3 Solutions of Linear Systems
4.7 Solving Systems using Matrix Equations and Inverses
SOLVING SYSTEMS USING ELIMINATION 6-3. Solve the linear system using elimination. 5x – 6y = -32 3x + 6y = 48 (2, 7)
Notes Over 4.4 Finding the Inverse of 2 x 2 Matrix.
3.8B Solving Systems using Matrix Equations and Inverses.
STROUD Worked examples and exercises are in the text 1 STROUD Worked examples and exercises are in the text Programme F5: Linear equations PROGRAMME F5.
Chapter 7: Systems of Equations and Inequalities; Matrices
Simultaneous Equations 1
ECE 3301 General Electrical Engineering
Solving Simultaneous Equations using Matlab
L9Matrix and linear equation
EGR 106 – Week 4 – Math on Arrays
PROGRAMME 4 DETERMINANTS.
PROGRAMME 4 DETERMINANTS.
Systems of Linear Equations in Engineering
4.6: Rank.
Simultaneous Equations
Simultaneous Equations
SIMULTANEOUS EQUATIONS 1
ARRAY DIVISION Identity matrix Islamic University of Gaza
PROGRAMME F5 LINEAR EQUATIONS and SIMULTANEOUS LINEAR EQUATIONS.
1.11 Use Inverse Matrices to Solve Linear Systems
Multiply by 5/40 and sum with 2nd row
Presentation transcript:

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 1Winter Quarter MATLAB: Simultaneous Equations Lecture 22

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 2Winter Quarter Simultaneous Equations with MATLAB MATLAB is very powerful for solving systems of N equations with N unknowns. It is used extensively for analyzing electric power grids and circuits, fluid flow in piping systems, and other engineering applications. It can, of course, be used for any application with n equations and n unknowns. For example, suppose that a Calculus text (C), a Physics text (P) and a Graphics text (G) can be purchased for $146. Then suppose the Calculus and Graphics texts can be purchased for $87 and the Physics and Calculus texts can be purchased for $105. How much does each text cost?

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 3Winter Quarter Simultaneous Equations with MATLAB The problem can be written as: 1P + 1C + 1G = 146 1C + 1G = 87 1P + 1C = 105 In MATLAB, the coefficients of the variables P, C & G are placed in a matrix and the Dollar values in a column vector. >>Books=[1,1,1;0,1,1;1,1,0] Books = >>Dollars=[146;87;105] Dollars =

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 4Winter Quarter Simultaneous Equations with MATLAB Now, the inverse of the matrix Books is multiplied by the vector Dollars: >>Cost = inv (Books) * Dollars Cost = This vector contains the cost of P in row one, C in row 2 and G in row 3.

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 5Winter Quarter Simultaneous Equations with MATLAB Another MATLAB solution would be to use the reverse division sign as follows: >>Cost = Books \ Dollars Cost =

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 6Winter Quarter Simultaneous Equations with MATLAB A third MATLAB solution can be obtained by using the Row Reduced Echelon Form (rref) function as follows. First combine the matrix and vector: EDU» COMBINED=[Books Dollars] COMBINED =

Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 7Winter Quarter Simultaneous Equations with MATLAB Then invoke the rref function with the resulting matrix. >> Cost = rref (COMBINED) Cost = The last column in the new matrix is the cost vector.