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


Hi,
I want to print graphs into different file using a loop.  How to do it?

for i = 1:numGraphs
     (graph into figure)
     fileName = [pathName, num2str( i ) ]: 
     (want to print into fileName)
end

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

Diego