MATLAB Answers

While working in GUI, how I can work with full screen?

14 views (last 30 days)
sermet on 14 Jun 2013
Commented: Image Analyst on 15 Jan 2016
In GUI, fig window not opens full screen because of buttons, after completing my working I open fig file full screen and there are empty spaces occurs, how can I work full screen like fig file opens full screen in order to avoid spaces?
  1 Comment
David Sanchez
David Sanchez on 14 Jun 2013
Could you state your question in another way? It is not very clear what your problem is. What spaces do you want to avoid?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 14 Jun 2013
The window managers generally do not allow windows to be sized as full screen unless special graphics calls are made. But you can try this FEX contribution for hints, or this one

More Answers (3)

Vishal Rane
Vishal Rane on 14 Jun 2013
You could set the 'Units' to 'Normalized' ensuring that when you expand the figure, all components on ur GUI resize accordingly. For that your 'position' indices should be between 0 and 1.
  1 Comment
Walter Roberson
Walter Roberson on 14 Jun 2013
The window managers for MS Windows do not normally permit applications to go completely full screen: they require that some space be left to access menu bars or close buttons or the like. You need to do special things to take over the entire screen.

Sign in to comment.

Image Analyst
Image Analyst on 14 Jun 2013
You can try this:
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
It makes it the same size as the full screen though it seems the upper left of the GUI is not always exactly, precisely at the upper left pixel of your video adapter.
Image Analyst
Image Analyst on 15 Jan 2016
A programmatic way to maximize the window is the attached code I got from Yair Altman It works both with R2014b and later (unlike some), and earlier.

Sign in to comment.

Jan on 18 Jun 2013
FEX: WindowAPI allows to resize the figure to full screen (as the maximization button with visible task bar), to the full screen overlapping the task bar, and even to expand the inner position to both kinds of full screen.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!