MATLAB: How to display an image which occupies the entire screen and has no borders

borderfigurefillfullscreengrayimageMATLABmaximizemenubarscreenwindow

I want to display an image such that it occupies the entire screen. I also want to eliminate the window borders including the menu bar.

Best Answer

The ability to display an image in full screen is not possible in MATLAB. A workaround would be to maximize the figure programmatically and eliminate both the window borders and the menu bar.
A sample code is provided below:
I = imread('rice.png');
figure; imshow(I)
set(gcf,'MenuBar','none')
set(gca,'DataAspectRatioMode','auto')
set(gca,'Position',[0 0 1 1])