From: Assaf Weinstein on
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i1d81q$97c$1(a)fred.mathworks.com>...
> 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

--> Thank you, Jan, but I still can't work it out.. not through the function you described, and not even when I try:

position=[0 0 50 200];
H = openfig('ShortestAR.fig', 'reuse');
set(H, 'Position', position, 'Visible', 'on');

(I see no change to the figure size..)

Thanks

asaf
From: Jan Simon on
Dear Assaf,

> position=[0 0 50 200];
> H = openfig('ShortestAR.fig', 'reuse');
> set(H, 'Position', position, 'Visible', 'on');
> (I see no change to the figure size..)

It works on my WinXP, Matlab 6.5 and 2009a.
But the minimal window width is 104 pixels in Matlab. 50 pixels are too small.

Kind regards, Jan