From help-request at octave dot org Mon Nov 15 21:40:26 2004 Subject: Re: output the figures From: mirek at zind dot ikem dot pwr dot wroc dot pl To: octave help mailing list Date: Tue, 16 Nov 2004 04:15:14 +0100 On Mon, Nov 15, 2004 at 08:13:43PM -0600, kevwalker wrote: > gset term png > for i=1:10 > gset output ????? > plot(T(i,:)) > end > > what's the filename I need to set so I can get the files with > 1.png 2.png 3.png .....10.png?? Change gset output ????? to: eval(sprintf('gset output %d.png',i)) Mirek ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------