From: Assaf Weinstein on
Hi,

Is there a way to specify the window size of a figure when I save it? (so that when I open it, it will retain the window size)

Thakn you,

Asaf
From: Serdar Tombul on
Open your figure window with Position and sizing options like below.

figure('Position',[0 0 550 200]);ezplot('sin(x)',[-pi pi]);

When you save it and open it again, it will preserve its size and the position where you closed it.

Serdar Tombul.
From: Image Analyst on
You can use export_fig():

http://www.mathworks.com/matlabcentral/fileexchange/?term=author%3Awoodford
From: Assaf Weinstein on
"Serdar Tombul" <no_mail(a)yahoo.com> wrote in message <i1ck0h$e4q$1(a)fred.mathworks.com>...
> Open your figure window with Position and sizing options like below.
>
> figure('Position',[0 0 550 200]);ezplot('sin(x)',[-pi pi]);
>
> When you save it and open it again, it will preserve its size and the position where you closed it.
>
> Serdar Tombul.

--Thanks a lot! but how do I apply it to an existing figure that I have (which is saved as a .fig)?..

Thank you,

asaf
From: Jan Simon on
Dear Assaf,

> --Thanks a lot! but how do I apply it to an existing figure that I have (which is saved as a .fig)?..

Open figure, apply changes (e.g. set position), save figure.

Or what about an adjusted opener function for figures:
function H = OpenFigure(FigFile, Position)
H = openfug(FigFile, 'invisible');
set(H, 'Position', Position, 'Visible', 'on');
drawnow;
return;

Good luck, Jan