Using Microsoft Excel Built-in Functions and Matrix Operations.

Slides:



Advertisements
Similar presentations
Matrices & Systems of Linear Equations
Advertisements

3_3 An Useful Overview of Matrix Algebra
MF-852 Financial Econometrics
Matrix Commands in Excel Anthony Murphy Nuffield College
Pam Perlich Urban Planning 5/6020
Matrix Mathematics in MATLAB and Excel
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Intro to Matrices Don’t be scared….
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
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.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Algebra 2: Lesson 5 Using Matrices to Organize Data and Solve Problems.
ECON 1150 Matrix Operations Special Matrices
AGB 260: Agribusiness Information Technology Arrays and Array Formulas.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Matrix Arithmetic. A matrix M is an array of cell entries (m row,column ) and it must have rectangular dimensions (Rows x Columns). Example: 3x x.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
13.1 Matrices and Their Sums
AGB 260: Agribusiness Information Technology Arrays and Array Formulas.
ME 142 Engineering Computation I Matrix Operations in Excel.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
 6. Use matrices to represent and manipulate data, e.g., to represent payoffs or incidence relationships related in a network.  7. Multiply matrices.
Sec 4.1 Matrices.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
3.5 Perform Basic Matrix Operations Add Matrices Subtract Matrices Solve Matric equations for x and y.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Precalculus Section 14.1 Add and subtract matrices Often a set of data is arranged in a table form A matrix is a rectangular.
Matrix Algebra Basics Chapter 3 Section 5. Algebra.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Warm-UP A = 7-310B = C =7-4Find:A 22 and C 31 97Find: the dimensions of each -88 Matrix Find: A + B and B – A and C + B.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
A rectangular array of numeric or algebraic quantities subject to mathematical operations. The regular formation of elements into columns and rows.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Section 6-2: Matrix Multiplication, Inverses and Determinants There are three basic matrix operations. 1.Matrix Addition 2.Scalar Multiplication 3.Matrix.
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 =
MTH108 Business Math I Lecture 20.
AGB 260: Agribusiness Data Literacy
13.4 Product of Two Matrices
CGN 2420 Matrix Operations in Excel
MATRICES.
Linear Algebra review (optional)
Matrix Operations.
Chapter 7 Matrix Mathematics
Matrices and Matrix Solutions
Matrix Operations.
Matrix Operations Monday, August 06, 2018.
Matrix Operations.
Matrix Operations SpringSemester 2017.
Section 7.4 Matrix Algebra.
WarmUp 2-3 on your calculator or on paper..
Unit 3: Matrices
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
MATRICES MATRIX OPERATIONS.
Method 1: Substitution methods
BUSINESS MATHEMATICS & STATISTICS.
3.6 Multiply Matrices.
1.8 Matrices.
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Presentation transcript:

Using Microsoft Excel Built-in Functions and Matrix Operations

Excel Embedded Functions Excel has a wide variety of Built-in Functions: Mathematical Financial Statistical Logical Database Conversion User-defined ***

Excel Embedded Functions These functions allow us to : Perform more complex operations Combine data for parametric calculations Manipulate the contents of the datasheet Search for values in the datasheet

Excel Embedded Functions Example: Open Excel and start from an empty datasheet and enter the following data: txV

Excel Embedded Functions Enter the following formula for an oscillating particle position at any time t with a frequency  =0.75 By clicking in the fx button or entering: =sin(0.75*A2) on cell B2 txV

Excel Embedded Functions Plot the position x(t) as:

Excel Embedded Functions Enter the following formula for the particle velocity at any time t with a frequency  =0.75 By clicking in the fx button or entering: =0.75*cos(0.75*A2) on cell C2 txV

Excel Embedded Functions Plot the velocity V(t) as:

Excel Embedded Functions We can also perform multi-dimensional calculations: Assume that the temperature of the surface of an electronic 3x3 board is given by the function:

Excel Embedded Functions Enter the following data for the position (x,y): x→ yy

Excel Embedded Functions Use the formula for the surface temperature on cell B3 as: = EXP(0.1*(B$2+$A3))*SIN(B$2-1)*COS($A3-1)

Excel Embedded Functions Use a surface graph to plot T(x,y) as:

Matrix Operations A Matrix is a collection of independent values ordered in a row-column format: The above Matrix is said to be (3x5) or 3 by 5 because it has 3 rows and 5 columns. The first number is the first dimension or the number of rows. The second number is the second dimension or the number of columns.

When a Matrix has just one (1) column (Nx1) is said to be a vector. The following is a (4x1) vector: Matrices are very useful in the solution of systems of multiple linear equations arising from many problems: Electricity, Heat Transfer, Fluid Mechanics, Optics, etc. Matrix Operations

The fundamental Matrix operations are: 1.Addition and Subtraction 2.Multiplication by a Scalar 3.Transpose 4.Multiplication of Two Matrices 5.Determinant 6.Inversion Matrix Operations

1.Addition and Subtraction: To add or subtract two matrices they both must have the same exact dimensions. The result contains the addition or subtraction of corresponding elements. In Excel, simply enter the matrices, add or subtract the first element of each matrix into a new cell, and copy the cell to form the new matrix: [A]1222 (3x4) [C]=[A]+[B]346 (3x4)3-465 [B] (3x4) Matrix Operations

2.Multiplication by a Scalar: The resulting matrix of a scalar-matrix multiplication has the same dimensions as the original matrix with all its elements multiplied by the scalar. In Excel, simply enter the Matrix and the Scalar, multiply the first element of the matrix times the scalar (with absolute address) into a new cell, and copy the cell to form the new matrix: Scalar5 [A]-223 [C]=Scalar x [A] (4x3)32 (4x3) Matrix Operations

3. Transpose: The transpose of a matrix positions the rows on the column locations and the columns on the row locations. The result is a Matrix with the opposite dimensions as the original one ( 5x4 → 4x5). In Excel, use the built- in-function =transpose(). Remember to use [ctrl- shift-enter] when entering the results because the =transpose() function will occupy multiple cells: [A]2-252transpose[A]22102 (5x4)2-233(4x5) Matrix Operations

4. Multiplication of two Matrices: To multiply two matrices the number of columns of the first matrix must equal the number of rows of the second. The resulting matrix will have as many rows as the first and as many columns as the second. In Excel, use the built-in-function =mmult(,). Remember to use [ctrl-shift-enter] when entering the results because the =mmult(,) function will occupy multiple cells: [A]-242 (2x3)331 [C]=[A]x[B]8616 (2x4) [B] (3x4) Matrix Operations

Another Multiplication example: [A]3-220[c]=[A]x[b]10 (5x5)11-201(5x1) [b]2 (5x1) Matrix Operations

5. Determinant: Only the determinants of square matrices can be obtained. The determinant of a singular matrix is zero (0). In Excel, use the built- in-function =mdeterm(). [A]31-2 determinant[ A]-40 (4x4) Matrix Operations

6. Inversion: Only the inverse of square matrices can be obtained. The inverse of a matrix has the same dimensions as the original one. In Excel, use the built-in-function =minverse(). Remember to use [ctrl-shift-enter] when entering the results because the =minverse() function will occupy multiple cells: [A]3-220inverse[A] (5x5)11-201(5x5) Matrix Operations

Solution of systems of multiple linear equations: If a system of linear equations is well-posed (same number of equations as unknowns and no equation is the combination of one or more of the others) a Matrix-Vector Analogy can be found to facilitate the solution of the system. Given the following system of five (5) equations and five (5) unknowns: Matrix Operations

Where the unknowns x 1 …x 5 can represent electric intensity, energy, temperature, flow velocities, etc., depending on the application. An analog Matrix-Vector system can be derived as: Or simplified as: Matrix Operations

The solution of the system is given by: In Excel: [A]2-321{b}4 (5x5)2 -2 (5x1) inverse[A] {x}=inv[A]x{b}1.28 (5x5) (5x1) Matrix Operations