How to maximize a MATLAB figure to full screen?

29,322

Solution 1

When opening a new figure, you can pass arguments to the figure function:

figure('units','normalized','outerposition',[0 0 1 1])

A full list of figure properties is also available here.

Solution 2

I believe the following two links will give you the information you need:

http://www.mathworks.com/support/solutions/en/data/1-4TEZ9X/?product=SL&solution=1-4TEZ9X http://www.mathworks.com/support/solutions/en/data/1-3MY8PN/index.html?solution=1-3MY8PN

Share:
29,322
Veridian
Author by

Veridian

Updated on July 09, 2022

Comments

  • Veridian
    Veridian almost 2 years

    I am creating some figures in MATLAB and I have a command that I run that coverts them to .eps after the figure is created.

    However, I want the figures to be maximized before they are saved to .eps. I am looking for a command that tells MATLAB to resize the figure to the screen size. Then I want to run my function which saves to a .eps.

    Is there such a way?

    I have heard it may be possible to specify the pixel widths of the figure. I forgot that command, so if you know it, that would be helpful.

    What I really want is some type of maximize_figure() function if possible.