LAB ASSIGNMENT 6 (due 03/12/14) ______________________________ (Total Points: 15) Submit EITHER Part 1 OR Part 2 ______________________________ Part 1 ________ TASK 1.1 - Launch MATLAB and open the figure triangles.fig - As in item 5 in Lab 5, generate a square X-Y grid using m = 200 ; a = -1 : 1/m : 1 ; (note the difference in the left endpoint) - As efficiently as possible, construct a matrix A such that imshow(flipud(A)) produces an image identical to triangles.fig TASK 1.2 Using the method in Lab 6, item 5, determine the total number of singular 3x3 matrices whose entries take values 5, 7, 9, 11 and 13. ________ Submit a zip or rar package containing the following file (use the exact file name as shown): lastname_labhw_06.m The m-file should contain the MATLAB code for both tasks. For task 1.2, include the answer (# of singular matrices). Insert at least one comment, at the most important line in your code; and additional comments that might help the grader better understand your solution and give you partial credit in case of errors. Please put your name and student ID on the first line. The zip or rar package should be named as lastname_labhw_06.zip / .rar, and should be uploaded from the upload link on the course lab web page , or if not possible, emailed to enee222S2013@gmail.com. (End of Part 1. If you have done Part 1, do NOT do Part 2) ___________________________________________________________________________ Part 2 ________ An unknown image file was imported into MATLAB and converted into a numeric array I consisting of integers in the range 0 through 255: I = imread('unknown.pdf') ; I = double(I) ; Subsequently, I was transformed into J and saved using the commands J = mod(I+147,256) ; save modball J The objective is to reproduce the unknown image file. - Load the array J. - Display the array using IMSHOW or IM222, making sure J is properly scaled. - Read the documentation on the function MOD (i.e., modulo or remainder). - Write a single-line command that produces I (which was not given) from J. Check your result visually, making sure that I is properly scaled. Write a few lines explaining you approach. If any function is used, explain why it can be applied so. - Use IMWRITE to reproduce the original (unknown) image in PNG format. If you cannot access the image processing toolbox, you may save the image as an array of numeric values between 0 and 1. ________ Submit a zip or rar package containing the following files (use exact file names as shown): lastname_labhw_06.m The m-file should contain the MATLAB code for this task. Insert at least one comment, at the most important line in your code; and additional comments that might help the grader better understand your solution and give you partial credit in case of errors. Please put your name and student ID on the first line. lastname_labhw_06.png The reproduced image file. The zip or rar package should be named as lastname_labhw_06.zip / .rar, and should be uploaded from the upload link on the course lab web page , or if not possible, emailed to enee222S2013@gmail.com. (End of Part 2. If you have done Part 2, do NOT do Part 1) ___________________________________________________________________________