S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Matlab Basics Introduction to Matlab: Matrix Operations.

Slides:



Advertisements
Similar presentations
Programming Environment S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Cells and Structures.
Advertisements

Arrays and Matrices CSE, POSTECH. 2 2 Introduction Data is often available in tabular form Tabular data is often represented in arrays Matrix is an example.
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Numerical Interpolation.
Introduction to Matlab:
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Numerical Integration.
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Optimization Toolbox.
Programming Environment S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Control Flow.
Math Review with Matlab: Application: Solving Differential Equations
Maths for Computer Graphics
1 Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as a i,j and elements of.
Solving Algebraic Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab:
CE 311 K - Introduction to Computer Methods Daene C. McKinney
S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Laplace Transform Math Review with Matlab: Calculating the Laplace.
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.
4.2 Adding and Subtracting Matrices 4.3 Matrix Multiplication
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Polynomial Manipulations.
Array Addition  Two arrays can be added if and only if both arrays have exactly the same dimensions.  Assuming the dimension requirement is satisfied,
Matrices Jordi Cortadella Department of Computer Science.
Lecture 28: Mathematical Insight and Engineering.
13.1 Matrices and Their Sums
S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: User Input / Output Programming Environment.
1 ECE 1304 Introduction to Electrical and Computer Engineering Section 1.7 Linear Algebra with MATLAB.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
Matrices Operations The info in this powerpoint came from coolmath.com
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Af2. The Queen Mother says “ Please be quite and let Patrick give the lecture. Thank you.”
3.5 Perform Basic Matrix Operations Add Matrices Subtract Matrices Solve Matric equations for x and y.
Precalculus Section 14.1 Add and subtract matrices Often a set of data is arranged in a table form A matrix is a rectangular.
Add and subtract matrices. Multiply by a matrix scalar.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
MATH 1046 Introduction to Matrices (Sections 3.1 and 3.2)
CSE 504 Discrete Mathematics & Foundations of Computer Science
Properties and Applications of Matrices
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
MATRICES.
Multiplying Matrices.
Matrices.
Matrix Operations.
Linear Algebra Lecture 2.
Discrete Structures – CNS2300
CHAPTER 2 MATRICES Determinant Inverse.
Matrix Operations Monday, August 06, 2018.
Matrix Operations Add and Subtract Matrices Multiply Matrices
Sequences and Summations
WarmUp 2-3 on your calculator or on paper..
الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . 1 جمع المصفوفات وطرحها.
Lesson 13-2: Adding & Subtracting Matrices
Introduction to MATLAB Lecture 02
Matrix Multiplication
Review of Matrix Algebra
CSE 541 – Numerical Methods
Section 2.4 Matrices.
2.2 Introduction to Matrices
Matrices Introduction.
CS100: Discrete structures
MATRICES Operations with Matrices Properties of Matrix Operations
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Introduction to Matlab:
Introduction to Matlab: Element by Element Operations
Matrices in MATLAB Dr. Risanuri Hidayat.
Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as ai,j and elements of B as.
What is the dimension of the matrix below?
Arrays and Matrices Prof. Abdul Hameed.
Introduction to Matrices
Matrices - Operations ADJOINT MATRICES
Applied Discrete Mathematics Week 4: Functions
Matrices and Determinants
Presentation transcript:

S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Matlab Basics Introduction to Matlab: Matrix Operations

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 2 n Transpose Transpose n Addition Addition n Subtraction Subtraction n Multiplication Multiplication n Matrix Powers Matrix Powers

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 3 Transpose of a Matrix » a = [ 1 2 3; 4 5 6; 7 8 9]; » b = a’;

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 4 n Matrices a, b, & c will have same dimensions n For addition c(i,j) = a(i,j) + b(i,j) Note: c = a + 1 means c(i,j) = a(i,j) + 1 Addition of Matrices » c = a + b c =

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 5 Subtraction of Matrices n Matrices a, b, & d will have same dimensions n For subtraction d(i,j) = a(i,j) - b(i,j) » d = a - b d = Note: d = a - 1 means d(i,j) = a(i,j) - 1

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 6 Multiplication of Matrices Suppose: a is n x m (n by m) & b is m x for c = a * b, c must be n x  » a = [ 1 1 1]; » c = a * a’;% c = c = 3

MATLAB Basics: » U of M-Dearborn ECE Department Introduction to MATLAB and its Toolboxes Matrix Operations 7 n Assume that a is a square matrix, then  b = a^2 means b = a* a  c = a^5 means a*a*a*a*a n In general  d = a^p = a*a*a*...*a (for p times) n In case p is not an integer (i.e. p = 1/2)  e = a^0.5 means a = e*e Note: a^-1  inv(a) Matrix Powers