Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k26g2000vbp.googlegroups.com!not-for-mail
From: Brendan <brendandetracey@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Maximize Windows Programically (Vista x64)
Date: Tue, 8 Sep 2009 05:50:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 16
Message-ID: <d8d50f05-0f43-4d52-a246-508bf1f743a3@k26g2000vbp.googlegroups.com>
References: <h854md$f4$1@fred.mathworks.com>
NNTP-Posting-Host: 24.222.3.178
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1252414225 25236 127.0.0.1 (8 Sep 2009 12:50:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 8 Sep 2009 12:50:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k26g2000vbp.googlegroups.com; posting-host=24.222.3.178; 
	posting-account=B-TRNQoAAACbFTAQWrEB2ZKtNl2Jbw6S
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; 
	.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; 
	.NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:568959


On Sep 8, 5:30 am, "Kian " <kian.to...@utah.edu> wrote:
> I'd like to be able to maximize a windows with code. I found a few scripts on file exchange, but non works with Vista x64.
>
> Does anyone know how I can achieve this? I'm running MATLAB R2007b.
>
> The reason why I need this (maybe there a better way) is that I'm constructing a video (animation) of about 10 figures. The figures have subplots on them and when I use getframe the subplots end up being really small. I'd like to maximize it and then use getfigure.
>
> Thanks!

scrsz = get(0,'ScreenSize');
set(gcf,'Position',[scrsz(1) scrsz(2)+scrsz(4)/20 scrsz(3) scrsz(4)
*17/20]);