MATLAB: How to set images to fill the axes

axes

I am trying to make it so that the all the images I show in an axes fill the axes completely, no matter the size of the image.

Best Answer

Use:
axis image
See the documentation for axis for details.