display N images in all the possible combinations in 3 x 3 matrices

1 view (last 30 days)
Hi all,
Hope someone can help me.
I have a folder with a set of images. All the images have the same size. What I would like to do is to present all the possible combinations of these images in 3 x 3 grids and save each of them as a JPG. I could do this manually, but I have too many images.
Any help would be very appreciated!
  4 Comments
Walter Roberson
Walter Roberson on 24 Jun 2018
9 images arranged on a 3 x 3 grid in all possible permutations would have 362880 results. Are you sure you want to do that?
9 choices for the first position, 8 choices for the second position, 7 choices for the third position, ... 9! = 362880 total possibilities.
Alejandro Estudillo
Alejandro Estudillo on 25 Jun 2018
Hi Walter,
Thanks for your reply. I have been doing some simulations wit the function permn and I think that what I want to do is not too convenient. Ideally, I would like to have all the possible combinations, but I think I am going to use a different approach. Thanks again for your reply!

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!