2012-05-06 9 views

答えて

3
RGB = [255 0; 0 255; 0 0]; % red and green 
rectSize = 50; 

imshow([repmat(reshape(RGB(:,1),[1 1 3]),[rectSize rectSize]) repmat(reshape(RGB(:,2),[1 1 3]),[rectSize rectSize])]); 

enter image description here

関連する問題