Multiple images in one image/figure

Hello everyone,
Allow me to concisely set the scene for my question. I am currently running a bunch of simulations that result in ternary composition diagrams using MATLAB. For the sake of comprehensiveness of the dataset I am making composites of images overlayed over a background. To be exact, I am using one background for every figure and am than inserting 66 smaller figures on certain locations in the figure.
The figures are all generated in MATLAB and then saved as .png using the export_fig function.
Currently I am doing this operation in Powerpoint but it takes a very long time to complete one figure and it is also very repetitive. I would thus like to know if it is possible do automate this process using matlab, i.e. overlaying multiple figures at specified locations over a background figure...
Regards
Dries

 Accepted Answer

KSSV
KSSV on 12 Apr 2017
Edited: KSSV on 12 Apr 2017
I1 = imread('cameraman.tif') ;
I2 = imread('peppers.png') ;
figure
hold on
imagesc(I2) ;
set(gca,'ydir','reverse')
imagesc([50 200], [50 200],I1)
imagesc([200 350], [200 350],I1)

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 12 Apr 2017

Edited:

on 12 Apr 2017

Community Treasure Hunt

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

Start Hunting!