1 views

Original Title: Matrix Commands

Uploaded by Manuel Balaguera

- UCLA Math 33A syllabus
- 2010ALmock-PureMathsP1_Q&A_OscarTam
- MODULE 12-Matrices.pdf
- Biharmonic in Rectangle (2008)
- 6502handout8
- IGCSE Matrices
- A Friendly Mathematics Competition - 35 Years of Teamwork in Indiana
- SSLC MATHS Chapter 4
- Syllabus Xi Xii Pcmbe
- IterMethBook_2ndEd
- lec21
- Introducing Affine Invariance to IFS
- Professor Teuvo Kohonen (Auth.) Self-Organizing Maps
- EURMT-202.rtf
- Machine Learning Book
- Cont Frac Arith
- Multi-Way Analysis in the Food Industry
- new paper 2
- untitled
- Salesforce Report Summary Functions Cheatsheet

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.

- UCLA Math 33A syllabusUploaded byzmy8686
- 2010ALmock-PureMathsP1_Q&A_OscarTamUploaded byCharlie H.P. Yu
- MODULE 12-Matrices.pdfUploaded byAnonymous PPYjNtt
- Biharmonic in Rectangle (2008)Uploaded bysmaliraissian
- 6502handout8Uploaded byRoy Vesey
- IGCSE MatricesUploaded byNad Hs
- A Friendly Mathematics Competition - 35 Years of Teamwork in IndianaUploaded bySoruth Kuntikul
- SSLC MATHS Chapter 4Uploaded byMuruga Vel
- Syllabus Xi Xii PcmbeUploaded bysecret2016
- IterMethBook_2ndEdUploaded byFidkekd Lei
- lec21Uploaded byankajkumar
- Introducing Affine Invariance to IFSUploaded byoff_the_grid
- Professor Teuvo Kohonen (Auth.) Self-Organizing MapsUploaded byZoraze Ali
- EURMT-202.rtfUploaded byJohn Cena
- Machine Learning BookUploaded bySerik_IITU
- Cont Frac ArithUploaded byBenjamin Culkin
- Multi-Way Analysis in the Food IndustryUploaded byekalhor6410
- new paper 2Uploaded byapi-242378778
- untitledUploaded byHaocheng Li
- Salesforce Report Summary Functions CheatsheetUploaded byMadhuri Malayathi
- iter1Uploaded byGap Sntin
- Sem -1 -Engineering Maths - I & IIUploaded byshreyassrinath
- 6 Practice SPM k2_2006U_04Uploaded bynorizy
- MATLAB indexing TasksUploaded byAhsan Naeem
- 1801-160102MATLABWorkbookUploaded byFinau Fonua
- CSE1018Y Labsheet5 -ArraysUploaded byMasterArvin
- Lecturenoteas14-16February2011Uploaded bychoupunk
- 00b4952a6fbc9d7486000000Uploaded byquantack
- Algebra II Sneak PeekUploaded byelilolos
- 1122Uploaded byAlonso Flores

- Paradigmas transdisciplinariedadUploaded byManuel Balaguera
- Fenómenos de rejaciónUploaded byManuel Balaguera
- AUDUNSSON CDIO Spirit in Introductory Physics Courses in EngineeringUploaded byManuel Balaguera
- AUDUNSSON CDIO Spirit in Introductory Physics Courses in EngineeringUploaded byManuel Balaguera
- Del reduccionismo a la complejidad.pptxUploaded byManuel Balaguera
- Haraldsson Etal BidragUploaded byManuel Balaguera
- Curva TuraUploaded byManuel Balaguera
- ARMSTRONG CDIO-based Comparison of Engineering Curricula in the USA Canada Sweden and UKUploaded byManuel Balaguera
- PosterUploaded byManuel Balaguera
- Dinámica de Una Partícula Cargada en Un Campo MagnéticoUploaded byManuel Balaguera
- Complejidad Una Perspectiva Cibernética EDUUploaded byManuel Balaguera
- The Physics of FluidsUploaded byManuel Balaguera
- FlujoUploaded byManuel Balaguera
- Cuadernillo 1Uploaded byManuel Balaguera
- [Journal of Social Ontology] Prcis of the Ant TrapUploaded byManuel Balaguera
- Concepts and Object-Oriented Knowledge Representation.pdfUploaded byManuel Balaguera
- Reacciones Biofísicas de La Pulpa en La PulpitisUploaded byManuel Balaguera
- Paralelogramo y Biseccion de DiagonalesUploaded byManuel Balaguera
- APUNTES SOBRE SISTEMAS ADAPTATIVOS.pdfUploaded byWendy
- Poster Modelar y SimularUploaded byManuel Balaguera
- JOLY the Future of Computational Biomedicine Complex Systems ThinkingUploaded byManuel Balaguera
- Cuerpo HumanoUploaded byManuel Balaguera
- Taller 1Uploaded byManuel Balaguera
- Lewin-Complejidad-El-Caos-Como-Generador-Del-Orden.pdfUploaded byManuel Balaguera
- Mathematical Thinking & Human NatureUploaded byManuel Balaguera
- Vector AnalysisUploaded byjamesjimmyjj
- Modeling Compelx SystemsUploaded byManuel Balaguera
- ComplejidadUploaded byManuel Balaguera
- REMOLINA Sabiduría Autoridad y Libertad Del MaestroUploaded byManuel Balaguera

- Oracle AR SLA QueriesUploaded byutkarh
- Power Method for EV.pdfUploaded byPartho Mukherjee
- YYZ LLC 13-136Uploaded byYCSTBlog
- Tech Brochure FINAL 11-29-07Uploaded byapi-3701945
- Revit 2010 TutorialsUploaded by_256cores
- 04-Chapter 4 Introduction to MA5600 BoardsUploaded byZubair Ahmad Siddiqui
- Book4 Integrate Partner TechnologiesUploaded byDilip
- Galil DMC-41x3 Press ReleaseUploaded byElectromate
- BattleTech BETA ManualUploaded bybryanletcher
- OM Set 3Uploaded byANZ
- Bendix EC-60 ABS Controller ChecklistUploaded byBer Honza
- TP48200A-D15A1 & H15A3 & H15A5 V300R001 Installation Guide 08Uploaded byPetyo Georgiev
- The Hows and Whys of Level Design - Table of contentsUploaded byHourences
- Highlights of LinuxCon 2010Uploaded bychaiken
- McqUploaded byZohaib Bukhari
- Hospital Software SolutionsUploaded byKriti Srivastava
- Origin vs OriginPro 2018Uploaded byÄhmêdÄBdulhåq
- LCA BI - Financial Report UsageUploaded byJack
- FFTW ArchitectureUploaded byircwaves
- UPS PowerWare 9120Uploaded byLuckyStrike
- MEDPAQUploaded byGustavo3020
- Toshiba Canivo Personal Cloud User Manual EnglishUploaded bybestasw
- High Voltage Direct Current Transmission SyllabusUploaded byraju9991
- Lot Size Planning in IBP.docxUploaded bySatyabrata Nath
- ArrancadorUploaded byJenny Tamayo
- What is a Surge ArresterUploaded bysandeep_chauhan3770
- MFP01EnUploaded byMartin J.
- Neural Network Toolbox - Classification With MLP DemoUploaded byFranck Dernoncourt
- OFDM TutorialUploaded bylg900df5063
- MBAL CompleteUploaded byVedant Singh Raghav