Plotting multiple images in subplot with reducing subplot distance and make title inside the each subplot images

조회 수: 3 (최근 30일)
I need to plot mutiple image in a one single image. Plotting will be 1X4. I need to attached all subplot side by side means no spacing between the subplot.Also need to control the size of each subplot for clear looking. Make title for each subplot inside the figure [Left middle inside the iamges]. I also need to save the figure with very high resoulation. I am new at matlab please try to provide me full matlab code. For better understand i unload the sample of the iamges in a zip file and details in other images . Thanks in Advanced.

채택된 답변

Chunru
Chunru 2021년 6월 15일
편집: Chunru 2021년 6월 15일
Use tiledlayout to control the gaps. You can use text(x,y, 'title') to place text anywhere.
% loose' (default) | 'compact' | 'tight' | 'none'
tiledlayout(1,4, 'TileSpacing', 'tight');
for i=1:4
nexttile
image(); axis tight; axis off
end

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by