subplot command for plotting images

I have a 45x45x45 array of images which I would like to view at once by using the subplot command. However when I am using subplot, the images are too small. I want to see a bigger version of them to get a closer look. If there is a way to use a scroll bar in the figure that pops up, I would like to know so larger versions of all 45 of the images I am trying to see will come up and fit in the same figure.

Answers (2)

To do this sort of thing, I usually use a combination of subaxis to arrange the subplots with far less wasted space in between, and expandAxes to zoom in on individual axes for further analysis.
I suggest you find another way of delivering the information. No one wants to scroll through a display of 91125 different images. Wait a minute -- is it 45 images like you said at the end, or a 45x45x45 (which = 91125) array of images like you said at the beginning?

2 Comments

Sorry for the confusion. There are 45 images, and each image is 45x45
Put in a loop. In the loop, use rem() or mod() to call figure every 5th iteration. In the loop call subplot(3, 3, loopIndex).

Sign in to comment.

Asked:

on 5 Sep 2014

Commented:

on 5 Sep 2014

Community Treasure Hunt

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

Start Hunting!