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 中形成包含两个正方形的图像?例如:
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])]);