lecture_E7_04_2p - The element indexed by (1,3,2) has a...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Matrices and arrays (continued) Operations on matrices Three dimensional matrices Lecture 4: Matrix operations Linear algebra matrix operations Cells Definitions of cells Structure arrays Reference: book, Chapter 2 Additional material: Lecture_04.m (available on bSpace) How to learn the size of an array? Array which contains the size of the matrix Size command
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Max operator on a matrix For each column it computes the maximum For each column, it computes the maximum For each column, it computes the corresponding location Maxima (for each column it computes the max the max) Locations (each number indicates where the maximum happens). Sorting a matrix Sorted Matrix Each column is sorted
Background image of page 2
3 Summing the elements in the column of a matrix Sum for each column Each element is the sum of the numbers in a column Three dimensional arrays
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The element indexed by (1,3,2) has a value of 9 4 Element-wise operations between matrices Additions and subtractions are allowed as long as the dimensions of the matrices are compatible Element-wise operations between matrices 5 Matrix operations: dot product Matrix operations: matrix multiplication A Element (i,j) of the product of A and B B 6 Matrix operations: matrix inversion Matrix operations: matrix inversion 7 Matrix operations: matrix inversion Vector Inverse of the matrix Vector Matrix Matrix operations: matrix inversion 8 Cells Fields of the cell structure can be of arbitrary type Structure arrays 9 Structure arrays First field (name) Second field (musician) Third field (age) Fourth field (test scores) Structure arrays...
View Full Document

Page1 / 9

lecture_E7_04_2p - The element indexed by (1,3,2) has a...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online