Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Print graphs into files
Date: Thu, 2 Jul 2009 22:57:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <h2jdvu$gjf$1@fred.mathworks.com>
References: <h2j7up$97e$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246575422 17007 172.30.248.38 (2 Jul 2009 22:57:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Jul 2009 22:57:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:552575


I figured out!  It was correct using print (some mistake before the line)
for i = 1:numGraphs
      (graph into figure)
      fileName = [pathName, num2str( i ) ]: 
      print ('-dbmp', fileName);
end


"Diego Lass" <dlISCool@gmail.com> wrote in message <h2j7up$97e$1@fred.mathworks.com>...
> Hi,
> I want to print graphs into different file using a loop.  How to do it?
> 

> 
> Thanks
> P.S. I tried     print ('-dbmp', fileName);   but Matlab keeps saying '' parse error at <EOL>" .
> 
> Diego