A = [0 , 0 , 1 , 1 ; 0 , 0 , 1 , 1]; C = repmat (A,40); imshow(C*255, [0,0,1; 1,0,0] );