Hi all I have few problems in matlab :
Suppose I have 5 images and I want to plot all of them in a matlab figure window. How can I do so ? Meaning I want to put two images in the 1st row and 3 images in the 2nd row. I actually want this output.

OR something like this :

Please bear in mind that I want to center align the images in top row of both the figure windows. In short I want to know how I can specifically set the positions for my subplots within the matlab figure window ?
Also is there any way in which I can give a main title to my figure window ? I do not want to use the function SUPLABEL
The code I use is this :
h1=figure;
subplot(2,3,1);imshow(I_orignial);title('The original Image','FontWeight','bold','FontSize', 12);
subplot(2,2,2);imshow(aa1); title('1st segment','FontWeight','bold','FontSize', 12);
subplot(2,2,3);imshow(aa2); title('2nd segment','FontWeight','bold','FontSize', 12);
subplot(2,2,4);imshow(aa3); title('3rd segment','FontWeight','bold','FontSize', 12);
%//Please note that aa1,aa2 & aa3 are logical arrays and I_orignial is an uint8 image.
%//The size of the logical arrays is 64X64.
%//The size of the image is 160X221.
Also is there anyway in which I can resize my subplot images to a particular size before displaying on the figures ? I mean how can I force images of different sizes to the same subplot sizes on a matlab figure ? Please note : I am not talking about imresize.
For further clarification do get back to me!
Thanks in advance !!
or
subaxispackage of the file exchange. But I highly recommend to you to save the time and do the image composition in illustrator or latex. Or is there a particular reason why you want to do this in matlab? - Robert Seifert