From: Assaf Weinstein on 11 Jul 2010 17:42 "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 12 Jul 2010 06:18 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
First
|
Prev
|
Pages: 1 2 Prev: Plotting Matlab figures on the Server Next: 3rd differentiation for Cfit object |