The most canonical way is to look at this bla answer here . This response uses the function from the file exchange MATLAB to achieve the response. However, this requires learning a new function and playing with parameters.
If you want something to work immediately, instead of showing each subimage in a separate grid on the graph, I just create a new image that sums all these images together:
bot_new = repmat(bot, [5 5]); imshow(bot_new);
repmat takes a matrix and duplicates / stacks / tiles by itself for the number of rows and as many columns (or in any dimension) that you want. In this case, I decided to fold the image so that there were 5 rows and 5 columns. Then we will show the folded image along with imshow .
If we used an example image from MATLAB:
bot = imread('onion.png');
If we run the above code, which splits the images together and shows the image, this is what we get:

source share