Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RGB値を含む3*2行列から、MATLABで2つの正方形を含む1つの画像を作成するにはどうすればよいですか?例えば:
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])]);