This preview shows page 1. Sign up to view the full content.
Unformatted text preview: array=zeros(rows,columns); %creates an array of all zeros; so that we do not have to index the zeros, %we simply have to index where the 1s and 2s need to go array(:,2:2:end)=1; %at all of the rows and every even column, a 1 will be placed there; like %the picture array(2:2:end,:)=2; %at every even row and every column, a 2 will be placed there; like the %picture array(2:4:end,4:4:end)=1; %at every other even row and every fourth column, a 1 will be placed there array(4:4:end,2:4:end)=1; %at every fourth row and every other even column, a 1 will be placed there weaved=array; %sets the changed array equal to the weaved output...
View
Full
Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
 Spring '08
 Stallworth

Click to edit the document details