Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 22P. 1Winter Quarter MATLAB: Simultaneous.

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:
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 11P. 1Winter Quarter Arrays Lecture 11.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 3P. 1Winter Quarter Structured Engineering.
Linear Simultaneous Equations
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.
Table of Contents Solving Linear Systems of Equations - Calculator Methods Consider the following augmented matrix... The rows can be written as... Row.
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.
Row rows A matrix is a rectangular array of numbers. We subscript entries to tell their location in the array Matrices are identified by their size.
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
A matrix equation has the same solution set as the vector equation which has the same solution set as the linear system whose augmented matrix is Therefore:
MECN 3500 Inter - Bayamon Lecture 7 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
1 1.5 © 2016 Pearson Education, Inc. Linear Equations in Linear Algebra SOLUTION SETS OF LINEAR SYSTEMS.
The inverse of a Square Matrix 2.1 Day 1 (Out of Pre-Calc book 8.3) We are reloading for another chapter.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
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.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 22P. 1Winter Quarter MATLAB: Simultaneous Equations Lecture 22.
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.
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.
1 Section 5.3 Linear Systems of Equations. 2 THREE EQUATIONS WITH THREE VARIABLES Consider the linear system of three equations below with three unknowns.
Elimination method Solving linear equations simultaneously.
Systems of Equations and Inequalities Ryan Morris Josh Broughton.
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)
1 ECE 221 Electric Circuit Analysis I Chapter 6 Cramer’s Rule Herbert G. Mayer, PSU Status 11/14/2014 For use at Changchun University of Technology CCUT.
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.
Ch. 7 – Matrices and Systems of Equations
ECE 3301 General Electrical Engineering
Solving Simultaneous Equations using Matlab
L9Matrix and linear equation
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.
Warm-up: Solve the system: 2x – 0.4y = -2 3x – 1 2 y = -2
Ch. 7 – Matrices and Systems of Equations
Multiply by 5/40 and sum with 2nd row
Presentation transcript:

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

Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 22P. 2Winter Quarter Simultaneous Equations with MATLAB MATLAB is a very powerful tool 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 –numerous other engineering applications. It can, of course, be used for any application with n equations and n unknowns.

Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 22P. 3Winter Quarter Simultaneous Equations with MATLAB For example, let's suppose that: –a Calculus text (C), a Physics text (P) and a Graphics text (G) can be purchased for $146. –a Calculus text and a Graphics text can be purchased for $87 –a Physics text and Calculus text can be purchased for $105. How much does each text cost?

Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 22P. 4Winter 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 The Ohio State University Gateway Engineering Education Coalition Lect 22P. 5Winter 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 The Ohio State University Gateway Engineering Education Coalition Lect 22P. 6Winter 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 The Ohio State University Gateway Engineering Education Coalition Lect 22P. 7Winter 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 The Ohio State University Gateway Engineering Education Coalition Lect 22P. 8Winter 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.