title: Layering multiple images in 3D-space
body: <p>Suppose we have a matrix I of size 49x49x5, corresponding to 5 images of size 49x49 stacked along the third dimension so we have a total of 5 images. These images should visualize the density of a gas in a 3D space, so we can think of each image as a section cut of the room at different locations.</p>
  
  <p>Is there any way to make a figure in MATLAB where all 5 images are shown as hanging in the 3D space they "came from"? </p>
  
  <p>Here is an image hopefully making it clearer what I am after:
  <img src="https://i.stack.imgur.com/cixiY.jpg" alt="5 images haning in 3D space"></p>