Create a tile of an odd number images where the row with odd number of images is centralized

조회 수: 8 (최근 30일)
Hi,
I'm looking if it is possible to create a tile with an odd number of images (I'm my current case three images). There images are .png images that I would import using something like
img = imread('example.png'); %# Load a sample image
The idea is to then be able to add a xlabel to each image. By doing os I could make nice publication-ready images with (a), (b), ... (z) notation.
A very bad example is given below:

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 5일
I have not read much about using tiledlayout() so I cannot answer about "tiles" as such.
However, the approach that could be used with subplot would be:
im = imread('flamingos.jpg');
subplot(2,7,1:3); imshow(im); xlabel('top row left');
subplot(2,7,5:7); imshow(im); xlabel('top low right');
subplot(2,7,10:12); imshow(im); xlabel('bottom row center');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by