imshow : add spacing between two images
8 次查看(过去 30 天)
显示 更早的评论
Hi, is there a way to add spacing between two images so that they are farther apart?
figure;
imshow([A B],[]);
colormap(winter);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148508/image.jpeg)
2 个评论
Image Analyst
2021-2-25
Basically the same way as in my Answer below. You just need to do it in both directions. There is no montage option for this I don't believe, so if you want it, you'll have to do it manually.
回答(1 个)
Image Analyst
2015-8-27
Try making a band of zeros
spacer = zeros(rows, columns, 'uint8');
wideMatrix = [A, spacer, B];
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!