Goals for today Learn to create, combine, and index arrays Learn to multiply arrays in MATLAB Use matrix multiplication to simulate a real-world problem.

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Section 13-4: Matrix Multiplication
Chapter Matrices Matrix Arithmetic
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Section 4.2 – Multiplying Matrices Day 2
Maths for Computer Graphics
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Lecture 2 MATLAB fundamentals Variables, Naming Rules, Arrays (numbers, scalars, vectors, matrices), Arithmetical Operations, Defining and manipulating.
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
Chapter 2 Systems of Linear Equations and Matrices Section 2.4 Multiplication of Matrices.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
4.2 Operations with Matrices Scalar multiplication.
ECON 1150 Matrix Operations Special Matrices
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
CS 170 – INTRO TO SCIENTIFIC AND ENGINEERING PROGRAMMING.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
8.2 Operations With Matrices
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
Matrix Operations.
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.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
3.6 Multiplying Matrices Homework 3-17odd and odd.
Manipulating MATLAB Vector, Matrices 1. Variables and Arrays What are variables? You name the variables (as the programmer) and assign them numerical.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
Do Now: Perform the indicated operation. 1.). Algebra II Elements 11.1: Matrix Operations HW: HW: p.590 (16-36 even, 37, 44, 46)
12-2 MATRIX MULTIPLICATION MULTIPLY MATRICES BY USING SCALAR AND MATRIX MULTIPLICATION.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Vectors, Matrices and their Products Hung-yi Lee.
ENG College of Engineering Engineering Education Innovation Center 1 Arrays in MATLAB Topics Covered: 1.Creating arrays of numbers vectors matrices.
LAB 2 Vectors and Matrices Dr.Abdel Fattah FARES.
MTH108 Business Math I Lecture 20.
13.4 Product of Two Matrices
12-1 Organizing Data Using Matrices
ECE 1304 Introduction to Electrical and Computer Engineering
Linear Algebra review (optional)
Manipulating MATLAB Matrices Chapter 4
Numeric, Cell and Structural Arrays One of the strenghts of MATLAB is the capabilty to handle collection of numbers called ARRAYS. MATLAB refers to scalars,
Chapter 7 Matrix Mathematics
1.5 Matricies.
Matrix Multiplication
Multiplying Matrices.
7.3 Matrices.
Multiplying Matrices.
4.5 Determinants of Matrices
Vectors and Matrices I.
Digital Image Processing
CSCI N207 Data Analysis Using Spreadsheet
2.2 Introduction to Matrices
Objectives Multiply two matrices.
Arrays and Matrices in MATLAB
Array Creation ENGR 1181 MATLAB 02.
Multidimensional array
Multiplying Matrices.
Dimensions matching Rows times Columns
Determinants 2 x 2 and 3 x 3 Matrices.
3.6 Multiply Matrices.
Linear Algebra review (optional)
Matrices in MATLAB Dr. Risanuri Hidayat.
Determinants 2 x 2 and 3 x 3 Matrices.
Matrices.
Matrix Operations Ms. Olifer.
Multiplying Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Multiplying Matrices.
Introduction to Matrices
Multiplying Matrices.
Presentation transcript:

Goals for today Learn to create, combine, and index arrays Learn to multiply arrays in MATLAB Use matrix multiplication to simulate a real-world problem Thursday, June 30 th, 2016

Last time: assignment addition/subtraction multiplication/division exponentiation expression target = expression a + b a - b a*b a/b a^b a b result order of operations: PEMDAS () ^ * / + -

Vectors, matrices, and multi-dimensional arrays columns rows pages

Creating arrays A = [5, 2, 1; 3, 2, 7] separate elements on a row with a comma separate rows with a semicolon

Special commands for creating arrays eye(n) ones(n, m) zeros(n, m) start:step:end

Transpose arrays with the ‘ operator F = A’ AF G = B’ B G

Join arrays together with square brackets ABC A D E

Think-Pair-Share: Can these arrays be joined? (1) (2)(3)

Retrieving parts of an array: “indexing” A(1, 2) row(s) column(s)

Retrieving parts of an array: “indexing” A(2, 3)

Multiple indices A([1, 2, 3], [2, 3]) rows columns

Multiple indices A(:, [2, 3]) shorthand for “all rows”

practice… (a) (d) (f) (e) (c) (b)

Matrix multiplication

Visualizing matrix multiplication

3 rows 3 columns 3x3 matrix

Multiplying arrays

Will they multiply? N

Properties of Matrix Multiplication Yes or no?

Multiplying rabbits

Can you help the rabbits survive longer without becoming overpopulated? What happens to the population over time? What happens when you change the birth rate? What happens when you change the survival rates?