Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to maximize a MATLAB figure to full screen? [duplicate]

Tags:

figure

matlab

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.

like image 229
Veridian Avatar asked Dec 15 '22 07:12

Veridian


1 Answers

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.

like image 188
Doresoom Avatar answered Dec 31 '22 14:12

Doresoom