0 Up votes0 Down votes

2 views12 pagesMatrix Commands Matrix Commands

Jan 26, 2017

Matrix Commands

© © All Rights Reserved

PPT, PDF, TXT or read online from Scribd

Matrix Commands Matrix Commands

© All Rights Reserved

2 views

Matrix Commands

Matrix Commands Matrix Commands

© All Rights Reserved

- Computer Practical File
- Chapter 11- Matrices
- Standard Akademik f5
- 4037_s02_qp_1
- Java Assignment Question paper
- Matriz
- Basic Concepts in Matlab
- lecture notes
- chap1_new
- Matrix
- 8 - I Dont Follow the Book PDF
- Unknown Document Name
- Appendices
- Fem Matrix Algebra
- 1 Cell Structure
- numeth
- Matrix (Chapter 2)
- Maths
- Math 259
- Rob2 03 Linear Algebra

You are on page 1of 12

in Excel

Anthony Murphy

Nuffield College

anthony.murphy@nuffield.ox.ac.uk

Excel can perform some useful, albeit basic, matrix

operations:

Addition & subtraction;

Scalar multiplication & division;

Transpose (TRANSPOSE);

Matrix multiplication (MMULT);

Matrix inverse (MINVERSE);

Determinant of matrix (MDETERM);

As well as combinations of these operations.

In Excel the matrix commands (and some

other commands) are called ARRAY

commands.

Can perform more complicated operations

using free add-ins for Excel e.g. MATRIX.

Alternatively, can use matrix package like

MATLAB (which also does symbolic maths

& matrix algebra).

Excel (Contd)

The matrix commands in Excel are

sufficient for this course.

If you are really keen, you can play around

with Visual Basic for Applications (VBA),

the Excel programming language.

For example, see Benninga, S. (2000),

Financial Modelling, MIT Press.

Named Cells

Most Excel formulae require you to name one or

more cell ranges e.g. b2.c4.

You can type these in directly or select them

using the mouse.

However, it is often better to use a named range.

To assign a name to a range of cells, highlight it

using the mouse and choose Insert Name

Define and enter a name.

Choose a useful name.

Remember Excel does not distinguish between

the names PRICE, Price and price.

Entering a Matrix

Choose a location for the matrix (or

vector) and enter the elements of the

matrix.

Highlight the cells of the matrix and

choose INSERT NAME DEFINE.

Enter a name for the matrix.

You can now use the name of the matrix in

formulae.

Multiplication Etc.

To add two named 3 x 2 matrices A and B:

Highlight a blank 3 x 2 results area in the

spreadsheet. (If the results area is too small, you

will get the wrong answer.)

Type =A+B in the formula bar and press the

CTRL, SHIFT and ENTER keys simultaneously.

You must use the CTRL, SHIFT,ENTER keys if

you want to perform a matrix computation. (If

you dont do this, you will get an error message

or the wrong answer.)

Multiplication Etc. (Contd)

If you click on any cell in the result, the

formula {=A+B} will be displayed. In Excel,

the { } brackets indicate a matrix (array)

command.

For an example of scalar multiplication,

see the Example Spreadsheet on the web

page.

Matrix Transpose

Suppose A is a 3 x 2 matrix.

The transpose of A, A, will be 2 x 3.

Select a 2 x 3 results area, type

=TRANSPOSE(A) in the formula bar and

press CTRL, SHIFT, ENTER.

Exercise: Choose A and B so that AB

exists. Check that (AB)' = B 'A using

MMULT (matrix multiplication).

What do you think (ABC)' is equal to?

Matrix Multiplication

Suppose A and B are named 3 x 2 and 2 x 3

matrices.

Then AB is 3 x 3 and BA is 2 x 2. This illustrates

the fact that, in general, AB is not equal to BA,

even if the matrices are conformable.

Select a blank 3 x 3 area for the result AB.

Type =MMULT(A,B) in the formula bar and press

CTRL, SHIFT, ENTER to generate AB.

Matrix Inverse

Suppose B is a square 2 x2 matrix.

Select a 2 x 2 area for the inverse of B.

Type =MINVERSE(B) in the formula bar and

press CRTL, SHIFT, ENTER.

If B is singular (non-invertible), you will get an

error message.

Suppose A and B have the same dimension and

are both invertible. Show that (AB)-1 = B-1A-1.

What do you think (ABC)-1 is equal to?

Matrix Determinant

Suppose A is a square matrix.

The determinant of A, det(A) or IAI, is a scalar.

Select a single cell, type = MDETERM(A) in the

formula area and press CTRL, SHIFT, ENTER

(or just ENTER).

If A is singular, then det(A) = 0.

Exercise: Check that det(AB) = det(BA) =

det(A).det(B), where A and B are square

matrices.

- Computer Practical FileUploaded byEltonD'souza
- Chapter 11- MatricesUploaded byJhagantini Palanivelu
- Standard Akademik f5Uploaded byRisma Robin
- 4037_s02_qp_1Uploaded byHassnain Raza
- Java Assignment Question paperUploaded byMuddasir Abbas Awan
- MatrizUploaded byLuigi MJ
- Basic Concepts in MatlabUploaded byapi-3833675
- lecture notesUploaded byapi-318836863
- chap1_newUploaded bydon
- MatrixUploaded byLuis Alberto Martínez Benítez
- 8 - I Dont Follow the Book PDFUploaded byAnh Minh
- Unknown Document NameUploaded byJashan Jot Singh
- AppendicesUploaded byMichael Mutaku
- Fem Matrix AlgebraUploaded byErcüment Kayacık
- 1 Cell StructureUploaded byshaarwin
- numethUploaded byNrapen Sipani
- Matrix (Chapter 2)Uploaded byLris Tan
- MathsUploaded byvishaljalan
- Math 259Uploaded byamitt18
- Rob2 03 Linear AlgebraUploaded byCharlie Yan
- vaishaliy.docxUploaded byvaishali
- algebra 2 practice 5Uploaded byapi-248877347
- 10.1.1.25.5953Uploaded bySimanta De
- 1-s2.0-0041164770900729-mainUploaded bySulabh Biswas
- GMAT Quant Topic 1 (General Arithmetic) SolutionsUploaded byAyush Porwal
- KalaUploaded byhariharankalyan
- Basic Matlab MaterialUploaded byGogula Madhavi Reddy
- docslide.net_ations-of-motion-for-a-legendre-transform-arbitrary-order.pdfUploaded byfairon
- MATLABUploaded bylokesh
- MatlabUploaded byranjith

- Complexity and EducationUploaded byManuel Balaguera
- Complex Variables.pptUploaded byManuel Balaguera
- The Physics of FluidsUploaded byManuel Balaguera
- AUDUNSSON CDIO Spirit in Introductory Physics Courses in EngineeringUploaded byManuel Balaguera
- Mathematical Thinking & Human NatureUploaded byManuel Balaguera
- TUCKER the History of the Undergraduate Program in Mathematics in the United StatesUploaded byManuel Balaguera
- Haraldsson Etal BidragUploaded byManuel Balaguera
- ARMSTRONG CDIO-based Comparison of Engineering Curricula in the USA Canada Sweden and UKUploaded byManuel Balaguera
- Spivak Elementary Mechanics From A Mathematician's ViewpointUploaded byNiflheim
- JOLY the Future of Computational Biomedicine Complex Systems ThinkingUploaded byManuel Balaguera
- [Journal of Social Ontology] Prcis of the Ant TrapUploaded byManuel Balaguera
- Modeling Compelx SystemsUploaded byManuel Balaguera
- Concepts and Object-Oriented Knowledge Representation.pdfUploaded byManuel Balaguera
- Vector AnalysisUploaded byjamesjimmyjj
- SAVIJARVI A toy climate model for Mars.pdfUploaded byManuel Balaguera
- Toy Story Materials Engineering at PlayUploaded byManuel Balaguera
- C#Uploaded byRafi_musfiq
- SOBOLThe Monte Carlo MethodUploaded byManuel Balaguera
- KARBAN Numerical Solution of Coupled Problems Using Code Agros2DUploaded byManuel Balaguera
- Polya Vector FieldsUploaded byManuel Balaguera
- DICOM IntroductionUploaded byManuel Balaguera
- Kreider Introduction to Linear AnalysisUploaded byManuel Balaguera

- book embed.pdfUploaded byVasi Uta
- DFA Interpretation helpUploaded byanupam99276
- Mathcad - Chapter 4Uploaded byAndres Moraga
- Arbitrary Axis RotationUploaded byBen Dawes
- math.pdfUploaded byjim
- unfaulted1.pdfUploaded byMohamed Ibrahim Shihataa
- Tensor Analysis SpringerUploaded byAndré Albuquerque
- LinearAlgebra1_FinalExamSample.pdfUploaded byLivardy Wufianto
- EigenvectorUploaded byChoy Cristobal
- 8221_Tutorial 1 Line IntegralUploaded byVictor Loong
- Binet Formula proofsUploaded byMiliyon Tilahun
- Differential Geometry - Gabriel Lugo (UNC).pdfUploaded byJuan
- EMT Lect- 1 Vector Alzebra, Vector Calculus Co-Ordinate SystemsUploaded byParag Parandkar
- Linear Algebra ExamUploaded byKarina Sanders
- Vector ApplicationsUploaded bySurya Pappu
- 2.1 Gauss-Jordan EliminationUploaded bysaadkhalis
- Modal CorrelationUploaded byDasaka Brahmendra
- Mathematics - Cambridge - Functional Analysis.pdfUploaded byamigoesperanza
- Vectors MindmapUploaded byAnonymous llKU0uaF
- Cartesian Coordinate SystemUploaded bystevenspillkumar
- James.reflexivityUploaded byAdam.A.A
- Matrices Homework 1Uploaded byPaul Turner
- Microsoft Word - VectorsUploaded byjitender8
- 50 ProblemsUploaded byUmme Ammara
- Rutherford -- Inverses of Boolean MatricesUploaded byDerek O'Connor
- Modes in Linear CircuitsUploaded bymtichy
- efg1Uploaded byVivek Premji
- 85109 Hw 3 SolutionsUploaded byAntonio Lorena
- Mathematics Honours Syllabus of Presidency UniversityUploaded byADITI Library
- Dual Smarandache Curves of a Timelike Curve lying on Unit dual Lorentzian SphereUploaded byMia Amalia

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.