MATLAB: How to combine 20 2D grayscale images (30*30 each) horizontally side by side from a 3D volumetric grayscale image (30*30*20)

image processing

How can I combine 20 2D grayscale images (30*30 each) horizontally side by side from a 3D volumetric grayscale image (30*30*20)?

Best Answer

  • Use reshape command,
    A=rand(30,30,20);
    AA=reshape(A,30,[],1);
    All 20 images are settled side wise in AA