I want to attach two images.
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
DGM
2022-2-25
编辑:DGM
2022-2-25
If the adjacent dimensions of the arrays match, they can be concatenated.
A = imread('cameraman.tif'); % a picture
B = imcomplement(A); % another picture
C = [A B]; % concatenate horizontally
imshow(C)
D = [A; B]; % concatenate vertically
imshow(D)
See also cat(), vertcat(), horzcat()
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!