Lecture5
8
Lecture 5 Matrices Eng. Mohamed Awni Electrical & Computer Engineering Dept.
-
Upload
mohamed-awni -
Category
Engineering
-
view
537 -
download
8
Transcript of Lecture5
- 1. Lecture 5 Matrices Eng. Mohamed Awni Electrical & Computer Engineering Dept.
- 2. Agenda 2 Array Functions . Exercise Homework Tiny Project
- 3. Array Functions length(X) Some built in matlab functions for various matrix/vector manipulations Returns the number of elements in vector Returns a row vector [m,n] where m=No. of rows & n=No. of columnssize (a)
- 4. Array Functions det(v) Return the determinant of the square matrix. Matrix must be square Returns the inverse of the square matrix v. Matrix must be square Inv (v)
- 5. 5 Exercises
- 6. Homework
- 7. Tiny Project Given the image in the left, By using simple matlab functions rearrange the four sub images to get the complete image shown in the right
- 8. 1- Download the monalisa_un image from the following link https://www.dropbox.com/s/a06oi0yw78klell/monalisa_un.png?dl=0 2-Save the downloaded image in your current directory. 3-Use matlab function imread to read the image as a matrix. Ex. A=imread(image_name.extention); 4- Divide the image to equally four subimages. Ex. A1=A(No. of rows , No. of columns); 5- Use matlab function imshow to view each subimage individually. Ex. imshow(A1) 6- Rearrange the four subimages to get the correct Monalisa image as shown above. Instructions Tiny Project