Effacer les filtres
Effacer les filtres

Can I set a figure maximum in GUI layout editor?

2 vues (au cours des 30 derniers jours)
Khanh
Khanh le 11 Oct 2014
Commenté : Khanh le 11 Oct 2014
Hi all,
Could someone please tell me how to set and display a figure at maximum size or full screen when it first open? Although I drag the lower right corner of the figure to the lowest right corner of the screen, it wasn't full screen size when initializing.
Thanks in advance.

Réponse acceptée

Geoff Hayes
Geoff Hayes le 11 Oct 2014
Khanh - if you are using GUIDE, then open the property inspector for the figure/GUI, and change the Units property to normalized, and the Position property to [0 0 1 1]. The first two elements of the position vector correspond to the x and y coordinate of the top-left corner of the figure/GUI; the third and fourth elements correspond to the width and height of the GUI respectively. Setting these values to one (and since units are normalized) allows you to set the GUI size to the screen size.
If you are not using GUIDE, then you can set the figure to be the full screen size as follows
h = figure;
set(h,'Units','normalized','Position',[0 0 1 1]);
  1 commentaire
Khanh
Khanh le 11 Oct 2014
Thank you so much. I solved it.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by