Announcements Exam 2 Next Week!! Final Exam :

Slides:



Advertisements
Similar presentations
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Advertisements

Maths for Computer Graphics
COMP 116: Introduction to Scientific Programming Lecture 7: Matrices and Linear Systems.
Array Math.
A First Book of ANSI C Fourth Edition
1 Week 3: Vectors and Matrices (Part III) READING: 2.2 – 2.4 EECS Introduction to Computing for the Physical Sciences.
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.
Arrays & Vectors Week 5. The simplest form of the multidimensional array is the two-dimensional array. A two- dimensional array is, in essence, a list.
Array Operations ENGR 1181 MATLAB 4.
Project Teams Project on Diffusion will be a TEAM project. 34 Students in class so 6 teams of 5 and one Team of 4. Determine members of team and a team.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
LAB 2 Vectors and Matrices Dr.Abdel Fattah FARES.
Chapter 8 Arrays and the ArrayList Class Multi-Dimensional Arrays.
Arrays 4/4 By Pius Nyaanga. Outline Multidimensional Arrays Two-Dimensional Array as an Array of Arrays Using the length Instance Variable Multidimensional.
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.
Two-Dimensional Arrays
12-1 Organizing Data Using Matrices
ECE 1304 Introduction to Electrical and Computer Engineering
Linear Algebra review (optional)
Chapter 7 Matrix Mathematics
Arrays An array is a grouping of elements of the same type that share a common base name Can have any number of elements in the array Individual elements.
Topic Dimensional Arrays
Two Dimensional Arrays
Two-dimensional arrays
Unit 1: Matrices Day 1 Aug. 7th, 2012.
Today’s Material Arrays Definition Declaration Initialization
Matrix Operations Monday, August 06, 2018.
Matrix Operations.
CS 1430: Programming in C++.
Matrix Operations SpringSemester 2017.
Multiplying Matrices.
WarmUp 2-3 on your calculator or on paper..
Vectors and Matrices Chapter 2 Attaway MATLAB 4E.
7.3 Matrices.
Multidimensional Arrays Vectors of Vectors
Final Review CSE321 B.Ramamurthy 11/23/2018 B.Ramamurthy.
CNG 140 C Programming (Lecture set 8)
Vectors and Matrices I.
Introduction to MATLAB [Vectors and Matrices] Lab 2
Final Review CSE321 B.Ramamurthy 12/9/2018 B.Ramamurthy.
CSCI N207 Data Analysis Using Spreadsheet
Multidimensional Arrays
Section 2.4 Matrices.
2.2 Introduction to Matrices
MSIS 655 Advanced Business Applications Programming
Unit 1 MATRICES Dr. Shildneck Fall, 2015.
Vectors and Matrices Chapter 2 Attaway MATLAB 4E.
Multiplying Matrices.
Multi-Dimensional Arrays
Dr Tripty Singh Arrays.
Matrix Addition
5 minutes Warm-Up Evaluate each expression for a = -5, b = 1.3, and c = -7. 1) a + b 2) b - c 3) a – b + c 4) -4b Solve each equation. 5) 16 = 2x.
Arrays An array is a grouping of elements of the same type that share a common base name Can have any number of elements in the array Individual elements.
Matlab Training Session 2: Matrix Operations and Relational Operators
Determinants 2 x 2 and 3 x 3 Matrices.
12.1 Addition of Matrices.
EECS Introduction to Computing for the Physical Sciences
Determinants 2 x 2 and 3 x 3 Matrices.
Matrix Operations SpringSemester 2017.
Arrays in MatLab Arrays can have any number dimensions
Multiplying Matrices.
Multiplying Matrices.
General Computer Science for Engineers CISC 106 Lecture 11
Introduction to Matrices
Multiplying Matrices.
Announcements.
Variable Storage Memory Locations (Logical) Variable Classes Stack
Announcements.
Announcements.
Presentation transcript:

Announcements Exam 2 Next Week!! Final Exam : Monday May 6th, 2:00 – 4:00 p.m. HH 002 Wednesday : Exam 2 Study Day HH 002 for Questions

Arrays Array – Set of Values with One Name MatLab Creation : arrayName = [ 1,3,5 ]; Vector – One Dimensional Array Matrix – Two Dimensional Array Element – One Member (Value) in an Array Offset or Subscript – location of an Element in and Array (in MatLab, starting with 1) Row Vector - “Row” of Values Column Vector - “Column” of Values

Array Element Addition/Subtraction >> rowV = [ 1, 3, 5 ] rowV = 1 3 5 >> rowV + 2 ans = 3 5 7 >> rowV - 5 -4 -2 0

Array Element Multiplication/Division >> rowV * 2 ans = 2 6 10 >> rowV / 2 0.5000 1.5000 2.5000

Array Element Exponentiation >> rowV^2 Error using ^ One argument must be a square matrix and the other must be a scalar. Use POWER (.^) for elementwise power. >> rowV.^2 ans = 1 9 25

Array to Array Operations >> rowV2 = [ 2, 4, 6] rowV2 = 2 4 6 >> rowV + rowV2 ans = 3 7 11 >> rowV - rowV2 -1 -1 -1

Array to Array Operations >> rowV * rowV2 Error using * Inner matrix dimensions must agree. >> rowV .* rowV2 ans = 2 12 30

Array Functions – max(), min() >> max(rowV) ans = 5 >> min(rowV) 1

Array Functions – length(), size() length() - Number of Elements in Vector size() - Returns a vector [NumRows, NumCols] >> length(rowV) ans = 3 >> size(rowV) 1 3

Array Functions – sum() >> sum(rowV) ans = 9 >> sum(rowV2) 12

Exam 2 Everything Through Quiz 2 if/then switch/case while loops for loops Functions function result = doThis(parameter1, parameter2) Arrays Creation Access Scalar Element to Element Operations Array to Array Operations max(), min(), length(), size(), sum()