Path: news.mathworks.com!not-for-mail
From: "Mario " <nospam@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Combining image and plotted data
Date: Mon, 7 Apr 2008 16:41:05 +0000 (UTC)
Organization: cle
Lines: 16
Message-ID: <ftdir0$29r$1@fred.mathworks.com>
References: <fo8qo1$i5p$1@fred.mathworks.com> <12336287.1202190094652.JavaMail.jakarta@nitrogen.mathforum.org> <ftdb75$ro1$1@fred.mathworks.com> <ftdgut$7e8$1@fred.mathworks.com>
Reply-To: "Mario " <nospam@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207586465 2363 172.30.248.35 (7 Apr 2008 16:41:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 7 Apr 2008 16:41:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1244954
Xref: news.mathworks.com comp.soft-sys.matlab:461549



ok.. this is the solution to my problem:

h=figure(100);
for count=1:s
    xy=marks{count};
    hold on;
    plot(x(:,1),y(:,2),'r-+');
    hold off;
    outImg=sprintf('test%d.bmp',count);
    set(gcf,'PaperUnits','inches','PaperPosition',[0 0
6.4/1.5 4.8/1.5])
    eval(['print -dbmp ' outImg])     
end

it works but the output image is 641x480 and not 640x480? why?