LESSON 3 MATRICES Azalya Rahmatika Fathul Fithrah JURUSAN MATEMATIKA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM UNIVERSITAS SYIAH KUALA DARUSSALAM,

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
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.
Pam Perlich Urban Planning 5/6020
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.
Matrices The Basics Vocabulary and basic concepts.
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
A matrix having a single row is called a row matrix. e.g.,
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
1 Introduction to MATLAB MATLAB is all of the following: 1.Computational environment 2.Plotting software 3.Programming language Typical applications: 1.Calculations.
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
CSE123 Lecture 5 Arrays and Array Operations. Definitions Scalars: Variables that represent single numbers. Note that complex numbers are also scalars,
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
Unit 6 : Matrices.
Arrays 1 Multiple values per variable. Why arrays? Can you collect one value from the user? How about two? Twenty? Two hundred? How about… I need to collect.
Matlab for Engineers Manipulating Matlab Matrices Chapter 4.
LESSON 2 BASIC ELEMENT OF SCILAB Azalya Rahmatika Fathul Fithrah JURUSAN MATEMATIKA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM UNIVERSITAS SYIAH KUALA.
Working with Arrays in MATLAB
CS 170 – INTRO TO SCIENTIFIC AND ENGINEERING PROGRAMMING.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
INTRODUCTION TO MATLAB DAVID COOPER SUMMER Course Layout SundayMondayTuesdayWednesdayThursdayFridaySaturday 67 Intro 89 Scripts 1011 Work
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
EXAMPLE 1 Add and subtract matrices
MATRICES Operations with Matrices Properties of Matrix Operations
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
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.
2.5 – Determinants and Multiplicative Inverses of Matrices.
Relational and Logical Operators EE 201 1C7-2 Spring 2012.
LESSON 5 LOOPING AND BRANCHING Azalya Rahmatika Fathul Fithrah JURUSAN MATEMATIKA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM UNIVERSITAS SYIAH KUALA.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
LAB 2 Vectors and Matrices Dr.Abdel Fattah FARES.
MTH108 Business Math I Lecture 20.
13.4 Product of Two Matrices
MATRICES.
12-1 Organizing Data Using Matrices
ECE 1304 Introduction to Electrical and Computer Engineering
Matrix Operations Free powerpoints at
Linear Algebra Lecture 2.
Manipulating MATLAB Matrices Chapter 4
1.5 Matricies.
Matrix Operations.
Matrix Operations Free powerpoints at
Matrix Operations Monday, August 06, 2018.
Matrix Operations.
Matrix Operations Add and Subtract Matrices Multiply Matrices
Matrix Operations SpringSemester 2017.
Matrix Operations Free powerpoints at
Multiplying Matrices.
WarmUp 2-3 on your calculator or on paper..
MATRICES MATRIX OPERATIONS.
( ) ( ) ( ) ( ) Matrices Order of matrices
Section 2.4 Matrices.
2.2 Introduction to Matrices
MATRICES Operations with Matrices Properties of Matrix Operations
Multiplying Matrices.
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
3.5 Perform Basic Matrix Operations
Matrices in MATLAB Dr. Risanuri Hidayat.
MATRICES MATRIX OPERATIONS.
Matrix Operations SpringSemester 2017.
Multiplying Matrices.
Multiplying Matrices.
Multiplying Matrices.
Presentation transcript:

LESSON 3 MATRICES Azalya Rahmatika Fathul Fithrah JURUSAN MATEMATIKA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM UNIVERSITAS SYIAH KUALA DARUSSALAM, BANDA ACEH April, 2013

Create a Row Vector Create a Column Vector Create a Column Vector same as above Create a matrix a which is a concatenation of x and y, provided they are compatible (same number of rows) Define a 3x3 matrix. Semicolons indicate end of a row A simpler syntax is available, which does not require to use the comma and semicolon characters. When creating a matrix, the blank space separates the columns while the new line separates the rows.

There are some handy utility functions to generate commonly used matrices, such as zero matrices, identity matrices, diagonal matrices, matrix containing randomly generated numbers etc. Creates a 5x8 matrix with all elements zero. Creates a 4x6 matrix with all elements 1 Creates a 3x3 identity matrix Creates a 3x3 diagonal matrix, with diagonal elements equal to 10. Create a matrix with 3 rows and 5 columns, the elements being random numbers between 0 and 1. Create a matrix with 3 rows and 5 columns, the elements being random real numbers between 0 and 10. Create a matrix with 3 rows and 5 columns, the elements being random real numbers between 0 and 10.

Transpose a and store it in b. Apostrophe (') is the transpose operator. Add a to b and store the result in c. aand b must be of the same size. Otherwise, Scilab will report an error. Subtract b from a and store the result in d. Multiply a with b and store the result in e. a and b must be compatible for matrix multiplication. Define a 3x3 matrix with name f. Invert matrix f and store the result in g. f must be square and positive definite. Scilab will display a warning if it is ill conditioned. The answer must be an identity matrix Determinant of f. Matrix of log of each element of a.

Element by element multiplication. Same as a * a Element by element square. Matrix addition and subtraction already being element-wise operations, element-wise addition and subtraction result in an error: Error

Size returns the number of rows and columns in y Number of elements in y. Element y(1) is the same as y(1, 1) Element y(2) is the same as y(2, 1). Elements are counted column-wise Element y(6) is the same as y(3, 2). Elements are counted column-wise

Generates a row of numbers from 1 to 5 at an increment of 1 Generates a column of numbers from 1 to 5 at an increment of 1 Creates a row vector with 5 elements. Same as [1, 2, 3, 4, 5] Creates a column vector with 5 elements. Same as [1; 2; 3; 4; 5] Creates a vector with 11 elements as follows [0, 0.5, 1.0, 1.5, , 5.0] range requires a start value, an increment and an end value, separated by colons (:). If only two values are given (separated by only one colon), they are taken to be the start and end values and the increment is assumed to be 1 (a:b is a short form for a:1:b, where a and b are scalars). The increment must be negative when the start value is greater than the end value.

1.the whole matrix, with the A syntax, 2. element by element with the A(i,j) syntax, 3. a range of index values with the colon ":" operator. There are several methods to access the elements of a matrix A: Figure. Explain about how to call element matrix Using A(I,i) syntax and A syntax.

Figure. Explain about how to call element matrix Using colon “:” oparator

Thank You for Your Attention!