Path: news.mathworks.com!not-for-mail
From: "Mario " <nospam@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Combining image and plotted data
Date: Mon, 7 Apr 2008 14:31:01 +0000 (UTC)
Organization: cle
Lines: 30
Message-ID: <ftdb75$ro1$1@fred.mathworks.com>
References: <fo8qo1$i5p$1@fred.mathworks.com> <12336287.1202190094652.JavaMail.jakarta@nitrogen.mathforum.org>
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 1207578661 28417 172.30.248.35 (7 Apr 2008 14:31:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 7 Apr 2008 14:31:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1244954
Xref: news.mathworks.com comp.soft-sys.matlab:461517



I have the following problem:

I have a bmp image and a vector of points. I want to plot
the points on the image and save the results. I tried with:

h=figure();
I=imshow(filenameIN);
hold on;
plot(x,y,&#8217;r-+&#8217;);
hold off;
saveas(h,filenameOUT);

It works fine if I "stay" in MATLAB and I do anything else.
But if I open, say, a web page while MATLAB is running these
commands, I get the webpage saved on the output image.
Is there any way to solve this problem (possibly without
using imshow but using imread instead, cause I&#8217;m not
interested in displaying the image)?
Thanks in advance for your help.


Yumnam Kirani Singh <kirani.singh@gmail.com> wrote in
message
<12336287.1202190094652.JavaMail.jakarta@nitrogen.mathforum.org>...
> there are some options, either you copy the image using
copy figure option of the figure window and paste it in a
new window of mspaint. You can also try Save As option under
File menu of the figure window. here you can the format of
the image file to be saved.