This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Notice that each row is a multiple of [4 8 12] 4 8 12 8 16 24 12 24 36 16 32 48 20 40 60 24 48 72 28 56 84 32 64 96 36 72 108 40 80 120 No Computer Question 2: Write 143 in binary. (In other words, convert from Base 10 to Base 2) No Computer Question 3: Write Matlab code that c reates a random 100x100 matrix full of integers between 5 and 100, and save it in the variable R . Now, convert R to a sparse matrix (and save it to the variable R2 ). Also , state which variable ( R or R2 ) will use less memory. No Computer Question 4: Given the following Matlab code, draw a grid that represents the image thats displayed. For each pixel in the grid, write in what color it will be, i.e. for a different set of code, you could have: Yellow Black White Black Orange Pink A(:,:,1) = zeros(3); A(:,:,2) = ones(3); A(:,:,3) = zeros(3); A(1:3,1,2) = zeros(3,1) A(1,1,1) = 0.9; imagesc(A)...
View Full
Document
 Fall '09
 blase

Click to edit the document details